X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2Fiattribute.h;h=24cbd57db692d8f1f47c4f34271287c61295883d;hb=bca085a1630564856dc74dfe33815622c5a43e9f;hp=e9f853cf67ee56661b4ca38ac69742ec5d6b36b2;hpb=dc87756342c051418eccb2b7d932ffa5453c6788;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/iattribute.h b/ltt/branches/poly/include/lttv/iattribute.h index e9f853cf..24cbd57d 100644 --- a/ltt/branches/poly/include/lttv/iattribute.h +++ b/ltt/branches/poly/include/lttv/iattribute.h @@ -3,7 +3,7 @@ #include -#include +#include /* The content of a data structure may be seen as an array of pairs of attribute name and value. This simple model allows generic navigation @@ -12,8 +12,6 @@ typedef GQuark LttvAttributeName; -typedef struct timespec LttvTime; - typedef enum _LttvAttributeType { LTTV_INT, LTTV_UINT, LTTV_LONG, LTTV_ULONG, LTTV_FLOAT, LTTV_DOUBLE, LTTV_TIME, LTTV_POINTER, LTTV_STRING, LTTV_GOBJECT, LTTV_NONE @@ -26,10 +24,10 @@ typedef union LttvAttributeValue { unsigned long *v_ulong; float *v_float; double *v_double; - timespec *v_timespec; + LttTime *v_time; gpointer *v_pointer; char **v_string; - gobject **v_gobject; + GObject **v_gobject; } LttvAttributeValue; @@ -68,7 +66,7 @@ struct _LttvIAttributeClass { void (*remove_by_name) (LttvIAttribute *self, LttvAttributeName name); - LttvIAttribute* (*create_subdir) (LttvIAttribute *self, + LttvIAttribute* (*find_subdir) (LttvIAttribute *self, LttvAttributeName name); }; @@ -121,7 +119,7 @@ void lttv_iattribute_remove_by_name(LttvIAttribute *self, attribute of that name already exists but is not a GObject supporting the iattribute interface, return NULL. */ -LttvIAttribute* lttv_iattribute_create_subdir(LttvIAttribute *self, +LttvIAttribute* lttv_iattribute_find_subdir(LttvIAttribute *self, LttvAttributeName name);