Flux Reference Manual |
---|
flux-object —
#define FLUX_OBJECT (obj) struct FluxObject; #define flux_object_check (object, type) guint flux_register_class (const gchar *name, guint parent_type); void flux_unregister_class_by_name (const gchar *name); void flux_unregister_class_by_type (guint type); const gchar* flux_get_class_name (guint type); guint flux_get_class_type (const gchar *name); guint flux_get_class_parent (guint type); FluxObject* flux_object_new (void); void flux_object_init (FluxObject *obj); void flux_object_destroy (FluxObject *obj); gint flux_object_get_refs (FluxObject *obj); void flux_object_ref (FluxObject *obj); void flux_object_unref (FluxObject *obj); guint flux_object_get_type (FluxObject *obj); void flux_object_set_type (FluxObject *obj, guint type); FluxFinalizeFunc* flux_object_get_finalize_func (FluxObject *obj); void flux_object_set_finalize_func (FluxObject *obj, FluxFinalizeFunc *func); void flux_object_assert (FluxObject *obj); void flux_object_check_real (FluxObject *obj, guint type);
guint flux_register_class (const gchar *name, guint parent_type);
name : | |
parent_type : | |
Returns : |
FluxFinalizeFunc* flux_object_get_finalize_func (FluxObject *obj);
obj : | |
Returns : |
void flux_object_set_finalize_func (FluxObject *obj, FluxFinalizeFunc *func);
obj : | |
func : |
<< Memory Management | flux-mem-chunk >> |