| liblangtag Documentation | ||||
|---|---|---|---|---|
| Top | Description | ||||
lt_ext_module_data_t * lt_ext_module_data_new (gsize size,GDestroyNotify finalizer); lt_ext_module_data_t * lt_ext_module_data_ref (lt_ext_module_data_t *data); lt_ext_module_data_t; void lt_ext_module_data_unref (lt_ext_module_data_t *data);
lt_ext_module_data_t * lt_ext_module_data_new (gsize size,GDestroyNotify 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... }; |
|
real size to allocate memory for the object. |
|
a callback function to destroy the content. |
Returns : |
a lt_ext_module_data_t. [transfer full] |
lt_ext_module_data_t * lt_ext_module_data_ref (lt_ext_module_data_t *data);
Increases the reference count of data.
|
a lt_ext_module_data_t. |
Returns : |
the same data object. [transfer none]
|
typedef struct {
gpointer 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.
gpointer |
a dummy pointer for alignment. |
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).
|
a lt_ext_module_data_t. |