#include <babeltrace/ctf-writer/stream-internal.h>
#include <babeltrace/ctf-writer/stream.h>
#include <babeltrace/ctf-writer/validation-internal.h>
-#include <babeltrace/object-internal.h>
-#include <babeltrace/values.h>
+#include <babeltrace/ctf-writer/object-internal.h>
+#include <babeltrace/ctf-writer/values-internal.h>
+#include <babeltrace/ctfser-internal.h>
struct bt_ctf_stream_class;
struct bt_ctf_stream_pos;
struct metadata_context;
struct bt_ctf_event_common {
- struct bt_object base;
+ struct bt_ctf_object base;
struct bt_ctf_event_class_common *class;
struct bt_ctf_field_wrapper *header_field;
struct bt_ctf_field_common *stream_event_context_field;
int bt_ctf_event_common_initialize(struct bt_ctf_event_common *event,
struct bt_ctf_event_class_common *event_class,
struct bt_ctf_clock_class *init_expected_clock_class,
- bool is_shared_with_parent, bt_object_release_func release_func,
+ bool is_shared_with_parent, bt_ctf_object_release_func release_func,
bt_ctf_validation_flag_copy_field_type_func field_type_copy_func,
bool must_be_in_trace,
int (*map_clock_classes_func)(struct bt_ctf_stream_class_common *stream_class,
}
static inline
-void bt_ctf_event_common_finalize(struct bt_object *obj,
+void bt_ctf_event_common_finalize(struct bt_ctf_object *obj,
void (*field_release_func)(void *),
void (*header_field_release_func)(void *, struct bt_ctf_event_common *))
{
* common ancestor with it to guarantee they would both have the
* same lifetime.
*/
- bt_object_put_ref(event->class);
+ bt_ctf_object_put_ref(event->class);
}
}
BT_HIDDEN
int bt_ctf_event_serialize(struct bt_ctf_event *event,
- struct bt_ctf_stream_pos *pos,
+ struct bt_ctfser *pos,
enum bt_ctf_byte_order native_byte_order);
static inline