projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gen io struct visitor: update enum
[babeltrace.git]
/
include
/
babeltrace
/
types.h
diff --git
a/include/babeltrace/types.h
b/include/babeltrace/types.h
index c8e31337c7bf452baed599e0b3fd3dfd50998a53..bfc698706766668cf67a1a9d346dc9dec1a9fc08 100644
(file)
--- a/
include/babeltrace/types.h
+++ b/
include/babeltrace/types.h
@@
-90,6
+90,7
@@
struct definition;
/* type scope */
struct declaration_scope {
/* Hash table mapping type name GQuark to "struct declaration" */
/* type scope */
struct declaration_scope {
/* Hash table mapping type name GQuark to "struct declaration" */
+ /* Used for both typedef and typealias. */
GHashTable *typedef_declarations;
/* Hash table mapping struct name GQuark to "struct declaration_struct" */
GHashTable *struct_declarations;
GHashTable *typedef_declarations;
/* Hash table mapping struct name GQuark to "struct declaration_struct" */
GHashTable *struct_declarations;
@@
-132,7
+133,6
@@
enum ctf_type_id {
struct declaration {
enum ctf_type_id id;
struct declaration {
enum ctf_type_id id;
- GQuark name; /* type name */
size_t alignment; /* type alignment, in bits */
int ref; /* number of references to the type */
/*
size_t alignment; /* type alignment, in bits */
int ref; /* number of references to the type */
/*
@@
-252,8
+252,15
@@
struct definition_enum {
GArray *value;
};
GArray *value;
};
+enum ctf_string_encoding {
+ CTF_STRING_UTF8 = 0,
+ CTF_STRING_ASCII,
+ CTF_STRING_UNKNOWN,
+};
+
struct declaration_string {
struct declaration p;
struct declaration_string {
struct declaration p;
+ enum ctf_string_encoding encoding;
};
struct definition_string {
};
struct definition_string {
@@
-397,18
+404,14
@@
void declaration_unref(struct declaration *declaration);
void definition_ref(struct definition *definition);
void definition_unref(struct definition *definition);
void definition_ref(struct definition *definition);
void definition_unref(struct definition *definition);
-/* Nameless declarations can be created by passing a NULL name */
-
-struct declaration_integer *integer_declaration_new(const char *name,
- size_t len, int byte_order,
+struct declaration_integer *integer_declaration_new(size_t len, int byte_order,
int signedness, size_t alignment);
/*
* mantissa_len is the length of the number of bytes represented by the mantissa
* (e.g. result of DBL_MANT_DIG). It includes the leading 1.
*/
int signedness, size_t alignment);
/*
* mantissa_len is the length of the number of bytes represented by the mantissa
* (e.g. result of DBL_MANT_DIG). It includes the leading 1.
*/
-struct declaration_float *float_declaration_new(const char *name,
- size_t mantissa_len,
+struct declaration_float *float_declaration_new(size_t mantissa_len,
size_t exp_len, int byte_order,
size_t alignment);
size_t exp_len, int byte_order,
size_t alignment);
@@
-445,12
+448,10
@@
void enum_unsigned_insert(struct declaration_enum *enum_declaration,
size_t enum_get_nr_enumerators(struct declaration_enum *enum_declaration);
struct declaration_enum *
size_t enum_get_nr_enumerators(struct declaration_enum *enum_declaration);
struct declaration_enum *
- enum_declaration_new(const char *name,
- struct declaration_integer *integer_declaration);
+ enum_declaration_new(struct declaration_integer *integer_declaration);
struct declaration_struct *
struct declaration_struct *
- struct_declaration_new(const char *name,
- struct declaration_scope *parent_scope);
+ struct_declaration_new(struct declaration_scope *parent_scope);
void struct_declaration_add_field(struct declaration_struct *struct_declaration,
const char *field_name,
struct declaration *field_declaration);
void struct_declaration_add_field(struct declaration_struct *struct_declaration,
const char *field_name,
struct declaration *field_declaration);
@@
-474,7
+475,7
@@
struct_get_field_from_index(struct definition_struct *struct_definition,
* from numeric values to a single tag. Overlapping tag value ranges are
* therefore forbidden.
*/
* from numeric values to a single tag. Overlapping tag value ranges are
* therefore forbidden.
*/
-struct declaration_untagged_variant *untagged_variant_declaration_new(
const char *name,
+struct declaration_untagged_variant *untagged_variant_declaration_new(
struct declaration_scope *parent_scope);
struct declaration_variant *variant_declaration_new(struct declaration_untagged_variant *untagged_variant,
const char *tag);
struct declaration_scope *parent_scope);
struct declaration_variant *variant_declaration_new(struct declaration_untagged_variant *untagged_variant,
const char *tag);
@@
-503,8
+504,7
@@
struct field *variant_get_current_field(struct definition_variant *variant);
* array.
*/
struct declaration_array *
* array.
*/
struct declaration_array *
- array_declaration_new(const char *name,
- size_t len, struct declaration *elem_declaration,
+ array_declaration_new(size_t len, struct declaration *elem_declaration,
struct declaration_scope *parent_scope);
/*
struct declaration_scope *parent_scope);
/*
@@
-512,8
+512,7
@@
struct declaration_array *
* to the sequence. No need to free them explicitly.
*/
struct declaration_sequence *
* to the sequence. No need to free them explicitly.
*/
struct declaration_sequence *
- sequence_declaration_new(const char *name,
- struct declaration_integer *len_declaration,
+ sequence_declaration_new(struct declaration_integer *len_declaration,
struct declaration *elem_declaration,
struct declaration_scope *parent_scope);
struct declaration *elem_declaration,
struct declaration_scope *parent_scope);
This page took
0.024354 seconds
and
4
git commands to generate.