Dynamic scope: child position is MAX_INT
[babeltrace.git] / include / babeltrace / types.h
index 885a6a1b85c07ff1195e85b051606b8d6e5fb87f..21dd66f246f0c9d71845858320bb359d7313ae60 100644 (file)
@@ -107,8 +107,11 @@ struct definition_scope {
        struct definition_scope *parent_scope;
        /*
         * Complete "path" leading to this definition scope.
-        * Includes trace/stream/event '.' field name '.' field name '.' ....
+        * Includes dynamic scope name '.' field name '.' field name '.' ....
         * Array of GQuark elements (which are each separated by dots).
+        * The dynamic scope name can contain dots, and is encoded into
+        * a single GQuark. Thus, scope_path[0] returns the GQuark
+        * identifying the dynamic scope.
         */
        GArray *scope_path;     /* array of GQuark */
 };
@@ -377,6 +380,9 @@ int register_field_definition(GQuark field_name,
 struct definition_scope *
        new_definition_scope(struct definition_scope *parent_scope,
                             GQuark field_name);
+void set_dynamic_definition_scope(struct definition *definition,
+                                 struct definition_scope *scope,
+                                 GQuark root_name);
 void free_definition_scope(struct definition_scope *scope);
 
 void declaration_ref(struct declaration *declaration);
This page took 0.024615 seconds and 4 git commands to generate.