X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftypes.h;h=da2387d311853192dbc6885898a10a40505c407f;hp=242b905761b99b5695aa3d18fee40b57599cab2f;hb=6b71274a81b38da08261f2122597c540b02b7aee;hpb=96354dac0b8b6a3e433fa86d3249c510f90c3e7d diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index 242b9057..da2387d3 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -87,6 +87,13 @@ char *get_pos_addr(struct stream_pos *pos) struct format; struct type; +/* Type declaration scope */ +struct declaration_scope { + /* Hash table mapping type name GQuark to struct type_class */ + GHashTable *type_classes; + struct declaration_scope *parent_scope; +}; + struct type_class { GQuark name; /* type name */ size_t alignment; /* type alignment, in bits */ @@ -277,13 +284,6 @@ struct type_sequence { struct field current_element; /* struct field */ }; -/* Type declaration scope */ -struct declaration_scope { - /* Hash table mapping type name GQuark to struct type_class */ - GHashTable *type_classes; - struct declaration_scope *parent_scope; -}; - struct type_class *lookup_type_class(GQuark qname, struct declaration_scope *scope); int register_type_class(struct type_class *type_class,