create directories branches, tags, trunk
[lttv.git] / ltt / branches / poly / lttv / lttv / attribute.h
index 784fcdc80d7f9151083dc1dc300d8cd109227a7f..498d567c8db6e2d1990820cb08e055d25855692a 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef ATTRIBUTE_H
 #define ATTRIBUTE_H
 
+/* FIXME : unnamed attributes not implemented */
+
 #include <glib-object.h>
 #include <lttv/iattribute.h>
 #include <stdio.h>
@@ -68,7 +70,7 @@ gboolean lttv_attribute_named(LttvAttribute *self, gboolean *homogeneous);
 /* Get the i th attribute along with its type and a pointer to its value. */
 
 LttvAttributeType lttv_attribute_get(LttvAttribute *self, unsigned i, 
-    LttvAttributeName *name, LttvAttributeValue *v);
+    LttvAttributeName *name, LttvAttributeValue *v, gboolean *is_named);
  
 
 /* Get the named attribute in the table along with its type and a pointer to
@@ -84,6 +86,8 @@ LttvAttributeType lttv_attribute_get_by_name(LttvAttribute *self,
 LttvAttributeValue lttv_attribute_add(LttvAttribute *self, 
     LttvAttributeName name, LttvAttributeType t);
 
+LttvAttributeValue lttv_attribute_add_unnamed(LttvAttribute *self, 
+    LttvAttributeName name, LttvAttributeType t);
 
 /* Remove an attribute */
 
@@ -101,6 +105,10 @@ void lttv_attribute_remove_by_name(LttvAttribute *self,
 LttvAttribute* lttv_attribute_find_subdir(LttvAttribute *self, 
       LttvAttributeName name);
 
+LttvAttribute* lttv_attribute_find_subdir_unnamed(LttvAttribute *self, 
+      LttvAttributeName name);
+
+
 gboolean lttv_attribute_find(LttvAttribute *self, LttvAttributeName name, 
     LttvAttributeType t, LttvAttributeValue *v);
 
@@ -108,7 +116,8 @@ gboolean lttv_attribute_find(LttvAttribute *self, LttvAttributeName name,
 /* Free recursively a tree of attributes. All contained gobject of type
    LttvAttribute are freed (unreferenced) recursively. */
 
-void lttv_attribute_recursive_free(LttvAttribute *self);
+// Now done by default.
+// void lttv_attribute_recursive_free(LttvAttribute *self);
 
 /* Add items from a tree of attributes to another tree. */
 
This page took 0.023552 seconds and 4 git commands to generate.