LiVES  3.2.0
Data Fields
lives_struct_def_t Struct Reference

112 bytes More...

#include <lsd.h>

Data Fields

uint64_t identifier
 
uint64_t unique_id
 default: LIVES_STRUCT_ID More...
 
int32_t refcount
 randomly generted id, unique to each instance More...
 
uint32_t generation
 initialized as 1 and incremented on each copy More...
 
void * top
 ptr to the start of parent struct itself, typecast to a void * More...
 
char structtype [LSD_TEXTLEN]
 
size_t structsize
 type of the struct as string, e.g "lives_struct_def_t" More...
 
char last_field [LSD_TEXTLEN]
 name of last field of struct (informational only) More...
 
lives_struct_new_cb new_struct_callback
 called from lives_struct_new More...
 
void * new_user_data
 
lives_struct_copied_cb copied_struct_callback
 user_data for new_struct_callback More...
 
void * copied_user_data
 
lives_struct_destroy_cb destroy_struct_callback
 user_data for clone_struct_callback More...
 
void * destroy_user_data
 called from lives_struct_free if refcount is 0 More...
 
lives_special_field_t ** special_fields
 user_data for delete_struct_callback More...
 
lives_special_field_t ** self_fields
 may be NULL, else is pointer to NULL terminated array More...
 
void * class_data
 fields in the struct_def_t struct itself More...
 
void * user_data
 user_data, value maintained across clones More...
 
uint64_t end_id
 user_data for instances of struct, reset on copy More...
 

Detailed Description

112 bytes

Definition at line 241 of file lsd.h.

Field Documentation

◆ class_data

void* lives_struct_def_t::class_data

fields in the struct_def_t struct itself

Definition at line 266 of file lsd.h.

◆ copied_struct_callback

lives_struct_copied_cb lives_struct_def_t::copied_struct_callback

user_data for new_struct_callback

called from lives_struct_copy

Definition at line 257 of file lsd.h.

◆ copied_user_data

void* lives_struct_def_t::copied_user_data

Definition at line 258 of file lsd.h.

◆ destroy_struct_callback

lives_struct_destroy_cb lives_struct_def_t::destroy_struct_callback

user_data for clone_struct_callback

Definition at line 260 of file lsd.h.

◆ destroy_user_data

void* lives_struct_def_t::destroy_user_data

called from lives_struct_free if refcount is 0

Definition at line 261 of file lsd.h.

◆ end_id

uint64_t lives_struct_def_t::end_id

user_data for instances of struct, reset on copy

Definition at line 268 of file lsd.h.

◆ generation

uint32_t lives_struct_def_t::generation

initialized as 1 and incremented on each copy

Definition at line 246 of file lsd.h.

◆ identifier

uint64_t lives_struct_def_t::identifier

Definition at line 242 of file lsd.h.

◆ last_field

char lives_struct_def_t::last_field[LSD_TEXTLEN]

name of last field of struct (informational only)

Definition at line 252 of file lsd.h.

◆ new_struct_callback

lives_struct_new_cb lives_struct_def_t::new_struct_callback

called from lives_struct_new

Definition at line 254 of file lsd.h.

◆ new_user_data

void* lives_struct_def_t::new_user_data

Definition at line 255 of file lsd.h.

◆ refcount

int32_t lives_struct_def_t::refcount

randomly generted id, unique to each instance

refcount, set to 1 on creation, free unrefs and only frees when 0.

Definition at line 245 of file lsd.h.

◆ self_fields

lives_special_field_t** lives_struct_def_t::self_fields

may be NULL, else is pointer to NULL terminated array

Definition at line 264 of file lsd.h.

◆ special_fields

lives_special_field_t** lives_struct_def_t::special_fields

user_data for delete_struct_callback

Definition at line 263 of file lsd.h.

◆ structsize

size_t lives_struct_def_t::structsize

type of the struct as string, e.g "lives_struct_def_t"

bytesize of parent struct (sizef(struct))

Definition at line 251 of file lsd.h.

◆ structtype

char lives_struct_def_t::structtype[LSD_TEXTLEN]

Definition at line 250 of file lsd.h.

◆ top

void* lives_struct_def_t::top

ptr to the start of parent struct itself, typecast to a void *

Definition at line 248 of file lsd.h.

◆ unique_id

uint64_t lives_struct_def_t::unique_id

default: LIVES_STRUCT_ID

Definition at line 243 of file lsd.h.

◆ user_data

void* lives_struct_def_t::user_data

user_data, value maintained across clones

Definition at line 267 of file lsd.h.


The documentation for this struct was generated from the following file: