projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace the struct definition
[babeltrace.git]
/
types
/
struct.c
diff --git
a/types/struct.c
b/types/struct.c
index 219d523078fa26aa6a2a9df27c761b4824214adc..fadc1877043cc5378e93c61db08b3f52ea10fbf7 100644
(file)
--- a/
types/struct.c
+++ b/
types/struct.c
@@
-36,14
+36,14
@@
#endif
static
#endif
static
-struct definition *_struct_definition_new(struct declaration *declaration,
+struct
bt_
definition *_struct_definition_new(struct declaration *declaration,
struct definition_scope *parent_scope,
GQuark field_name, int index,
const char *root_name);
static
struct definition_scope *parent_scope,
GQuark field_name, int index,
const char *root_name);
static
-void _struct_definition_free(struct definition *definition);
+void _struct_definition_free(struct
bt_
definition *definition);
-int bt_struct_rw(struct bt_stream_pos *ppos, struct definition *definition)
+int bt_struct_rw(struct bt_stream_pos *ppos, struct
bt_
definition *definition)
{
struct definition_struct *struct_definition =
container_of(definition, struct definition_struct, p);
{
struct definition_struct *struct_definition =
container_of(definition, struct definition_struct, p);
@@
-51,7
+51,7
@@
int bt_struct_rw(struct bt_stream_pos *ppos, struct definition *definition)
int ret;
for (i = 0; i < struct_definition->fields->len; i++) {
int ret;
for (i = 0; i < struct_definition->fields->len; i++) {
- struct definition *field =
+ struct
bt_
definition *field =
g_ptr_array_index(struct_definition->fields, i);
ret = generic_rw(ppos, field);
if (ret)
g_ptr_array_index(struct_definition->fields, i);
ret = generic_rw(ppos, field);
if (ret)
@@
-105,7
+105,7
@@
struct declaration_struct *
}
static
}
static
-struct definition *
+struct
bt_
definition *
_struct_definition_new(struct declaration *declaration,
struct definition_scope *parent_scope,
GQuark field_name, int index,
_struct_definition_new(struct declaration *declaration,
struct definition_scope *parent_scope,
GQuark field_name, int index,
@@
-141,8
+141,8
@@
struct definition *
struct declaration_field *declaration_field =
&g_array_index(struct_declaration->fields,
struct declaration_field, i);
struct declaration_field *declaration_field =
&g_array_index(struct_declaration->fields,
struct declaration_field, i);
- struct definition **field =
- (struct definition **) &g_ptr_array_index(_struct->fields, i);
+ struct
bt_
definition **field =
+ (struct
bt_
definition **) &g_ptr_array_index(_struct->fields, i);
*field = declaration_field->declaration->definition_new(declaration_field->declaration,
_struct->p.scope,
*field = declaration_field->declaration->definition_new(declaration_field->declaration,
_struct->p.scope,
@@
-154,7
+154,7
@@
struct definition *
error:
for (i--; i >= 0; i--) {
error:
for (i--; i >= 0; i--) {
- struct definition *field = g_ptr_array_index(_struct->fields, i);
+ struct
bt_
definition *field = g_ptr_array_index(_struct->fields, i);
bt_definition_unref(field);
}
bt_free_definition_scope(_struct->p.scope);
bt_definition_unref(field);
}
bt_free_definition_scope(_struct->p.scope);
@@
-164,7
+164,7
@@
error:
}
static
}
static
-void _struct_definition_free(struct definition *definition)
+void _struct_definition_free(struct
bt_
definition *definition)
{
struct definition_struct *_struct =
container_of(definition, struct definition_struct, p);
{
struct definition_struct *_struct =
container_of(definition, struct definition_struct, p);
@@
-172,7
+172,7
@@
void _struct_definition_free(struct definition *definition)
assert(_struct->fields->len == _struct->declaration->fields->len);
for (i = 0; i < _struct->fields->len; i++) {
assert(_struct->fields->len == _struct->declaration->fields->len);
for (i = 0; i < _struct->fields->len; i++) {
- struct definition *field = g_ptr_array_index(_struct->fields, i);
+ struct
bt_
definition *field = g_ptr_array_index(_struct->fields, i);
bt_definition_unref(field);
}
bt_free_definition_scope(_struct->p.scope);
bt_definition_unref(field);
}
bt_free_definition_scope(_struct->p.scope);
@@
-241,7
+241,7
@@
struct declaration_field *
/*
* field returned only valid as long as the field structure is not appended to.
*/
/*
* field returned only valid as long as the field structure is not appended to.
*/
-struct definition *
+struct
bt_
definition *
bt_struct_definition_get_field_from_index(struct definition_struct *_struct,
int index)
{
bt_struct_definition_get_field_from_index(struct definition_struct *_struct,
int index)
{
This page took
0.026542 seconds
and
4
git commands to generate.