projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ir: add internal field path getters
[babeltrace.git]
/
include
/
babeltrace
/
ctf-ir
/
event-types-internal.h
diff --git
a/include/babeltrace/ctf-ir/event-types-internal.h
b/include/babeltrace/ctf-ir/event-types-internal.h
index 48ead4858033f9d7543b7cc7e6e8d59d53b135cb..3adae33118f7d4f89d63b3758ef430178e316c9f 100644
(file)
--- a/
include/babeltrace/ctf-ir/event-types-internal.h
+++ b/
include/babeltrace/ctf-ir/event-types-internal.h
@@
-28,10
+28,10
@@
*/
#include <babeltrace/ctf-writer/event-types.h>
*/
#include <babeltrace/ctf-writer/event-types.h>
-#include <babeltrace/ctf-writer/ref-internal.h>
#include <babeltrace/ctf-writer/event-fields.h>
#include <babeltrace/ctf-writer/writer.h>
#include <babeltrace/ctf-ir/trace-internal.h>
#include <babeltrace/ctf-writer/event-fields.h>
#include <babeltrace/ctf-writer/writer.h>
#include <babeltrace/ctf-ir/trace-internal.h>
+#include <babeltrace/ctf-ir/common-internal.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/types.h>
#include <babeltrace/ctf/events.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/types.h>
#include <babeltrace/ctf/events.h>
@@
-62,7
+62,7
@@
struct bt_ctf_field_path {
};
struct bt_ctf_field_type {
};
struct bt_ctf_field_type {
- struct bt_ctf_
ref ref_count
;
+ struct bt_ctf_
base base
;
struct bt_declaration *declaration;
type_freeze_func freeze;
type_serialize_func serialize;
struct bt_declaration *declaration;
type_freeze_func freeze;
type_serialize_func serialize;
@@
-201,6
+201,12
@@
BT_HIDDEN
int bt_ctf_field_type_structure_get_field_name_index(
struct bt_ctf_field_type *structure, const char *name);
int bt_ctf_field_type_structure_get_field_name_index(
struct bt_ctf_field_type *structure, const char *name);
+/* Replace an existing field's type in a structure */
+BT_HIDDEN
+int bt_ctf_field_type_structure_set_field_index(
+ struct bt_ctf_field_type *structure,
+ struct bt_ctf_field_type *field, int index);
+
BT_HIDDEN
int bt_ctf_field_type_variant_get_field_name_index(
struct bt_ctf_field_type *variant, const char *name);
BT_HIDDEN
int bt_ctf_field_type_variant_get_field_name_index(
struct bt_ctf_field_type *variant, const char *name);
@@
-210,12
+216,26
@@
int bt_ctf_field_type_sequence_set_length_field_path(
struct bt_ctf_field_type *type,
struct bt_ctf_field_path *path);
struct bt_ctf_field_type *type,
struct bt_ctf_field_path *path);
+BT_HIDDEN
+struct bt_ctf_field_path *bt_ctf_field_type_sequence_get_length_field_path(
+ struct bt_ctf_field_type *type);
+
BT_HIDDEN
int bt_ctf_field_type_variant_set_tag_field_path(struct bt_ctf_field_type *type,
struct bt_ctf_field_path *path);
BT_HIDDEN
int bt_ctf_field_type_variant_set_tag_field_path(struct bt_ctf_field_type *type,
struct bt_ctf_field_path *path);
+BT_HIDDEN
+struct bt_ctf_field_path *bt_ctf_field_type_variant_get_tag_field_path(
+ struct bt_ctf_field_type *type);
+
BT_HIDDEN
int bt_ctf_field_type_variant_set_tag(struct bt_ctf_field_type *type,
struct bt_ctf_field_type *tag);
BT_HIDDEN
int bt_ctf_field_type_variant_set_tag(struct bt_ctf_field_type *type,
struct bt_ctf_field_type *tag);
+/* Replace an existing field's type in a variant */
+BT_HIDDEN
+int bt_ctf_field_type_variant_set_field_index(
+ struct bt_ctf_field_type *variant,
+ struct bt_ctf_field_type *field, int index);
+
#endif /* BABELTRACE_CTF_IR_EVENT_TYPES_INTERNAL_H */
#endif /* BABELTRACE_CTF_IR_EVENT_TYPES_INTERNAL_H */
This page took
0.026569 seconds
and
4
git commands to generate.