X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftypes.h;h=34e49aef18b7be474fb74f7221701f5e709deae4;hp=885a6a1b85c07ff1195e85b051606b8d6e5fb87f;hb=9e29e16ee50d03cf4fdc0cea0220832323939dc3;hpb=05c749e538ebc3a4f6735f62d022655cf92fc17e diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index 885a6a1b..34e49aef 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -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); +struct definition_scope * + new_dynamic_definition_scope(struct definition_scope *parent_scope, + GQuark field_name); void free_definition_scope(struct definition_scope *scope); void declaration_ref(struct declaration *declaration);