flux-object

flux-object —

Synopsis




#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);

Description

Details

FLUX_OBJECT()

#define FLUX_OBJECT(obj) ((FluxObject *) (obj))

obj :

struct FluxObject

struct FluxObject {

  guint type;
  guint refs;
  FluxFinalizeFunc *finalize_func;
};


flux_object_check()

#define     flux_object_check(object, type)

object :
type :

flux_register_class ()

guint       flux_register_class             (const gchar *name,
                                             guint parent_type);

name :
parent_type :
Returns :

flux_unregister_class_by_name ()

void        flux_unregister_class_by_name   (const gchar *name);

name :

flux_unregister_class_by_type ()

void        flux_unregister_class_by_type   (guint type);

type :

flux_get_class_name ()

const gchar* flux_get_class_name            (guint type);

type :
Returns :

flux_get_class_type ()

guint       flux_get_class_type             (const gchar *name);

name :
Returns :

flux_get_class_parent ()

guint       flux_get_class_parent           (guint type);

type :
Returns :

flux_object_new ()

FluxObject* flux_object_new                 (void);

Returns :

flux_object_init ()

void        flux_object_init                (FluxObject *obj);

obj :

flux_object_destroy ()

void        flux_object_destroy             (FluxObject *obj);

obj :

flux_object_get_refs ()

gint        flux_object_get_refs            (FluxObject *obj);

obj :
Returns :

flux_object_ref ()

void        flux_object_ref                 (FluxObject *obj);

obj :

flux_object_unref ()

void        flux_object_unref               (FluxObject *obj);

obj :

flux_object_get_type ()

guint       flux_object_get_type            (FluxObject *obj);

obj :
Returns :

flux_object_set_type ()

void        flux_object_set_type            (FluxObject *obj,
                                             guint type);

obj :
type :

flux_object_get_finalize_func ()

FluxFinalizeFunc* flux_object_get_finalize_func
                                            (FluxObject *obj);

obj :
Returns :

flux_object_set_finalize_func ()

void        flux_object_set_finalize_func   (FluxObject *obj,
                                             FluxFinalizeFunc *func);

obj :
func :

flux_object_assert ()

void        flux_object_assert              (FluxObject *obj);

obj :

flux_object_check_real ()

void        flux_object_check_real          (FluxObject *obj,
                                             guint type);

obj :
type :