X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fiattribute.h;h=0783077f646473fd3d33f584575ad6b3a8348a46;hb=6d677a86a688c9b468d934496323e6ea43fc0a01;hp=0bf10ad72d474443e174ace412d063f32dd1903e;hpb=bcc71139a65159446c0d00b2677969ebdc5639ca;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/iattribute.h b/ltt/branches/poly/lttv/lttv/iattribute.h index 0bf10ad7..0783077f 100644 --- a/ltt/branches/poly/lttv/lttv/iattribute.h +++ b/ltt/branches/poly/lttv/lttv/iattribute.h @@ -16,7 +16,7 @@ * MA 02111-1307, USA. */ -/* FIXME : unnamed attributed not implemented */ +/* FIXME : unnamed attributes not implemented */ #ifndef IATTRIBUTE_H #define IATTRIBUTE_H @@ -30,6 +30,13 @@ 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 + * the object is "given" to the attribute tree. When the gobject value + * is removed, the object is unreferenced. A value copy through + * lttv_iattribute_copy_value does increase the reference count of the + * gobject. */ + typedef GQuark LttvAttributeName; typedef enum _LttvAttributeType { @@ -127,7 +134,6 @@ LttvAttributeType lttv_iattribute_get_by_name(LttvIAttribute *self, LttvAttributeValue lttv_iattribute_add(LttvIAttribute *self, LttvAttributeName name, LttvAttributeType t); - /* Remove an attribute */ void lttv_iattribute_remove(LttvIAttribute *self, unsigned i);