Top |
lt_ext_module_data_t * lt_ext_module_data_new (size_t size
,lt_destroy_func_t finalizer
);
Create a new instance of lt_ext_module_data_t. this function allows to create an inherited instance like:
1 2 3 4 |
struct _my_module_data_t { lt_ext_module_data_t parent; ...own members... }; |
lt_ext_module_data_t *
lt_ext_module_data_ref (lt_ext_module_data_t *data
);
Increases the reference count of data
.
void
lt_ext_module_data_unref (lt_ext_module_data_t *data
);
Decreases the reference count of data
. when its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
typedef struct { lt_pointer_t dummy[8]; } lt_ext_module_data_t;
All the fields in the lt_ext_module_data_t structure are private to the lt_ext_module_data_t implementation.