X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=74a68a14487b29e3594c5470542558cd7c7e160f;hp=debecfef93728e56ed4cc417f13ddb12549b1df0;hb=0d69b916c5ba44b63a26aa038d416d6ee286306b;hpb=90b55a973b0689bb667a7e255d90d622414cb3ef diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index debecfef..74a68a14 100644 --- a/include/babeltrace/ctf-text/types.h +++ b/include/babeltrace/ctf-text/types.h @@ -37,11 +37,11 @@ #include /* - * Inherit from both struct stream_pos and struct trace_descriptor. + * Inherit from both struct bt_stream_pos and struct bt_trace_descriptor. */ struct ctf_text_stream_pos { - struct stream_pos parent; - struct trace_descriptor trace_descriptor; + struct bt_stream_pos parent; + struct bt_trace_descriptor trace_descriptor; FILE *fp; /* File pointer. NULL if unset. */ int depth; int dummy; /* disable output */ @@ -53,7 +53,7 @@ struct ctf_text_stream_pos { }; static inline -struct ctf_text_stream_pos *ctf_text_pos(struct stream_pos *pos) +struct ctf_text_stream_pos *ctf_text_pos(struct bt_stream_pos *pos) { return container_of(pos, struct ctf_text_stream_pos, parent); } @@ -62,21 +62,21 @@ struct ctf_text_stream_pos *ctf_text_pos(struct stream_pos *pos) * Write only is supported for now. */ BT_HIDDEN -int ctf_text_integer_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_integer_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_float_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_float_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_string_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_string_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_enum_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_enum_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_struct_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_struct_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_variant_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_variant_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_array_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_array_write(struct bt_stream_pos *pos, struct bt_definition *definition); BT_HIDDEN -int ctf_text_sequence_write(struct stream_pos *pos, struct definition *definition); +int ctf_text_sequence_write(struct bt_stream_pos *pos, struct bt_definition *definition); static inline void print_pos_tabs(struct ctf_text_stream_pos *pos) @@ -91,6 +91,6 @@ void print_pos_tabs(struct ctf_text_stream_pos *pos) * Check if the field must be printed. */ BT_HIDDEN -int print_field(struct definition *definition); +int print_field(struct bt_definition *definition); #endif /* _BABELTRACE_CTF_TEXT_TYPES_H */