- attribute name and value. This simple model allows generic navigation
- and access functions over a wide range of structures. The names are
- represented by unique integer identifiers, GQuarks. */
+ * attribute name and value. This simple model allows generic navigation
+ * and access functions over a wide range of structures. The names are
+ * represented by unique integer identifiers, GQuarks. */
/* Please note that adding a value of type gobject that is non null does not
* increment the reference count of this object : the actual reference to
/* Please note that adding a value of type gobject that is non null does not
* increment the reference count of this object : the actual reference to
- LTTV_INT, LTTV_UINT, LTTV_LONG, LTTV_ULONG, LTTV_FLOAT, LTTV_DOUBLE,
- LTTV_TIME, LTTV_POINTER, LTTV_STRING, LTTV_GOBJECT, LTTV_NONE
+ LTTV_INT, LTTV_UINT, LTTV_LONG, LTTV_ULONG, LTTV_FLOAT, LTTV_DOUBLE,
+ LTTV_TIME, LTTV_POINTER, LTTV_STRING, LTTV_GOBJECT, LTTV_NONE
- LttvAttributeType (*get) (LttvIAttribute *self, unsigned i,
- LttvAttributeName *name, LttvAttributeValue *v, gboolean *is_named);
+ LttvAttributeType (*get) (LttvIAttribute *self, unsigned i,
+ LttvAttributeName *name, LttvAttributeValue *v, gboolean *is_named);
- LttvAttributeType (*get_by_name) (LttvIAttribute *self,
- LttvAttributeName name, LttvAttributeValue *v);
+ LttvAttributeType (*get_by_name) (LttvIAttribute *self,
+ LttvAttributeName name, LttvAttributeValue *v);
- void (*remove_by_name) (LttvIAttribute *self,
- LttvAttributeName name);
+ void (*remove_by_name) (LttvIAttribute *self,
+ LttvAttributeName name);
- LttvIAttribute* (*find_subdir) (LttvIAttribute *self,
- LttvAttributeName name);
+ LttvIAttribute* (*find_subdir) (LttvIAttribute *self,
+ LttvAttributeName name);
- LttvIAttribute* (*find_subdir_unnamed) (LttvIAttribute *self,
- LttvAttributeName name);
+ LttvIAttribute* (*find_subdir_unnamed) (LttvIAttribute *self,
+ LttvAttributeName name);
/* Get the i th attribute along with its type and a pointer to its value. */
LttvAttributeType lttv_iattribute_get(LttvIAttribute *self, unsigned i,
/* Get the i th attribute along with its type and a pointer to its value. */
LttvAttributeType lttv_iattribute_get(LttvIAttribute *self, unsigned i,
/* Get the named attribute in the table along with its type and a pointer to
its value. If the named attribute does not exist, the type is LTTV_NONE. */
LttvAttributeType lttv_iattribute_get_by_name(LttvIAttribute *self,
/* Get the named attribute in the table along with its type and a pointer to
its value. If the named attribute does not exist, the type is LTTV_NONE. */
LttvAttributeType lttv_iattribute_get_by_name(LttvIAttribute *self,
and its pointer returned. */
LttvAttributeValue lttv_iattribute_add(LttvIAttribute *self,
and its pointer returned. */
LttvAttributeValue lttv_iattribute_add(LttvIAttribute *self,
/* Remove an attribute */
void lttv_iattribute_remove(LttvIAttribute *self, unsigned i);
void lttv_iattribute_remove_by_name(LttvIAttribute *self,
/* Remove an attribute */
void lttv_iattribute_remove(LttvIAttribute *self, unsigned i);
void lttv_iattribute_remove_by_name(LttvIAttribute *self,
iattribute interface, return NULL. */
LttvIAttribute* lttv_iattribute_find_subdir(LttvIAttribute *self,
iattribute interface, return NULL. */
LttvIAttribute* lttv_iattribute_find_subdir(LttvIAttribute *self,
/* The remaining utility functions are not part of the LttvIAttribute
interface but operate on objects implementing it. */
/* The remaining utility functions are not part of the LttvIAttribute
interface but operate on objects implementing it. */
exists but is of incorrect type. */
gboolean lttv_iattribute_find(LttvIAttribute *self, LttvAttributeName name,
exists but is of incorrect type. */
gboolean lttv_iattribute_find(LttvIAttribute *self, LttvAttributeName name,
/* Trees of attribute tables may be accessed using a hierarchical path with
components separated by /, like in filesystems */
gboolean lttv_iattribute_find_by_path(LttvIAttribute *self, const char *path,
/* Trees of attribute tables may be accessed using a hierarchical path with
components separated by /, like in filesystems */
gboolean lttv_iattribute_find_by_path(LttvIAttribute *self, const char *path,
/* Shallow and deep copies */
void lttv_iattribute_copy_value(LttvAttributeType t, LttvAttributeValue dest,
/* Shallow and deep copies */
void lttv_iattribute_copy_value(LttvAttributeType t, LttvAttributeValue dest,