projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: add internal bt_field_sequence_get_int_length()
[babeltrace.git]
/
include
/
babeltrace
/
ctf-ir
/
fields-internal.h
diff --git
a/include/babeltrace/ctf-ir/fields-internal.h
b/include/babeltrace/ctf-ir/fields-internal.h
index 720b88848b776f10d1de6d1563d542e488b28c73..6c25b26ca4d61b5656ac1ce80968fffd355303c8 100644
(file)
--- a/
include/babeltrace/ctf-ir/fields-internal.h
+++ b/
include/babeltrace/ctf-ir/fields-internal.h
@@
-31,88
+31,78
@@
#include <babeltrace/ctf-writer/event-fields.h>
#include <babeltrace/object-internal.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/ctf-writer/event-fields.h>
#include <babeltrace/object-internal.h>
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/types.h>
#include <stdint.h>
#include <stdint.h>
+#include <stdbool.h>
#include <glib.h>
#include <glib.h>
-struct bt_
ctf_
stream_pos;
+struct bt_stream_pos;
-struct bt_
ctf_
field {
+struct bt_field {
struct bt_object base;
struct bt_object base;
- struct bt_
ctf_
field_type *type;
-
int
payload_set;
-
int
frozen;
+ struct bt_field_type *type;
+
bool
payload_set;
+
bool
frozen;
};
};
-struct bt_
ctf_
field_integer {
- struct bt_
ctf_
field parent;
+struct bt_field_integer {
+ struct bt_field parent;
union {
int64_t signd;
uint64_t unsignd;
} payload;
};
union {
int64_t signd;
uint64_t unsignd;
} payload;
};
-struct bt_
ctf_
field_enumeration {
- struct bt_
ctf_
field parent;
- struct bt_
ctf_
field *payload;
+struct bt_field_enumeration {
+ struct bt_field parent;
+ struct bt_field *payload;
};
};
-struct bt_
ctf_
field_floating_point {
- struct bt_
ctf_
field parent;
+struct bt_field_floating_point {
+ struct bt_field parent;
double payload;
};
double payload;
};
-struct bt_ctf_field_structure {
- struct bt_ctf_field parent;
- GHashTable *field_name_to_index;
- GPtrArray *fields; /* Array of pointers to struct bt_ctf_field */
+struct bt_field_structure {
+ struct bt_field parent;
+ GPtrArray *fields; /* Array of pointers to struct bt_field */
};
};
-struct bt_
ctf_
field_variant {
- struct bt_
ctf_
field parent;
- struct bt_
ctf_
field *tag;
- struct bt_
ctf_
field *payload;
+struct bt_field_variant {
+ struct bt_field parent;
+ struct bt_field *tag;
+ struct bt_field *payload;
};
};
-struct bt_
ctf_
field_array {
- struct bt_
ctf_
field parent;
- GPtrArray *elements; /* Array of pointers to struct bt_
ctf_
field */
+struct bt_field_array {
+ struct bt_field parent;
+ GPtrArray *elements; /* Array of pointers to struct bt_field */
};
};
-struct bt_
ctf_
field_sequence {
- struct bt_
ctf_
field parent;
- struct bt_
ctf_
field *length;
- GPtrArray *elements; /* Array of pointers to struct bt_
ctf_
field */
+struct bt_field_sequence {
+ struct bt_field parent;
+ struct bt_field *length;
+ GPtrArray *elements; /* Array of pointers to struct bt_field */
};
};
-struct bt_
ctf_
field_string {
- struct bt_
ctf_
field parent;
+struct bt_field_string {
+ struct bt_field parent;
GString *payload;
};
GString *payload;
};
-/*
- * Set a field's value with an already allocated field instance.
- */
-BT_HIDDEN
-int bt_ctf_field_structure_set_field(struct bt_ctf_field *structure,
- const char *name, struct bt_ctf_field *value);
-
/* Validate that the field's payload is set (returns 0 if set). */
BT_HIDDEN
/* Validate that the field's payload is set (returns 0 if set). */
BT_HIDDEN
-int bt_ctf_field_validate(struct bt_ctf_field *field);
-
-/* Mark field payload as unset. */
-BT_HIDDEN
-int bt_ctf_field_reset(struct bt_ctf_field *field);
+int bt_field_validate(struct bt_field *field);
BT_HIDDEN
BT_HIDDEN
-int bt_
ctf_field_serialize(struct bt_ctf
_field *field,
- struct bt_
ctf_
stream_pos *pos,
- enum bt_
ctf_
byte_order native_byte_order);
+int bt_
field_serialize(struct bt
_field *field,
+ struct bt_stream_pos *pos,
+ enum bt_byte_order native_byte_order);
BT_HIDDEN
BT_HIDDEN
-void bt_
ctf_field_freeze(struct bt_ctf
_field *field);
+void bt_
field_freeze(struct bt
_field *field);
BT_HIDDEN
BT_HIDDEN
-
bool bt_ctf_field_is_set(struct bt_ctf
_field *field);
+
int64_t bt_field_sequence_get_int_length(struct bt
_field *field);
#endif /* BABELTRACE_CTF_IR_FIELDS_INTERNAL_H */
#endif /* BABELTRACE_CTF_IR_FIELDS_INTERNAL_H */
This page took
0.043679 seconds
and
4
git commands to generate.