X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fbabeltrace%2Fctf-ir%2Fevent-internal.h;h=17695f92bee84a8a18afbb4afd861a4bfd8890cf;hb=83509119a945fc77faff869daaf48627e1c4b3fa;hp=2a172a94589d33e9970ad439b73e3b6f14573cb5;hpb=123fbdeca6a37f9de585488caf67f9d70eeb5e8a;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/event-internal.h b/include/babeltrace/ctf-ir/event-internal.h index 2a172a94..17695f92 100644 --- a/include/babeltrace/ctf-ir/event-internal.h +++ b/include/babeltrace/ctf-ir/event-internal.h @@ -27,22 +27,22 @@ * SOFTWARE. */ -#include #include #include #include -#include +#include #include #include #include +#include #include #define BT_CTF_EVENT_CLASS_ATTR_ID_INDEX 0 #define BT_CTF_EVENT_CLASS_ATTR_NAME_INDEX 1 struct bt_ctf_event_class { - struct bt_ctf_ref ref_count; - struct bt_object *attributes; + struct bt_object base; + struct bt_value *attributes; /* * Weak reference; an event class does not have ownership of a * stream class. @@ -56,7 +56,7 @@ struct bt_ctf_event_class { }; struct bt_ctf_event { - struct bt_ctf_ref ref_count; + struct bt_object base; struct bt_ctf_event_class *event_class; /* Weak reference; an event does not have ownership of a stream */ struct bt_ctf_stream *stream; @@ -81,6 +81,10 @@ void bt_ctf_event_class_set_native_byte_order( struct bt_ctf_event_class *event_class, int byte_order); +BT_HIDDEN +int bt_ctf_event_class_set_stream_id(struct bt_ctf_event_class *event_class, + uint32_t stream_id); + BT_HIDDEN int bt_ctf_event_validate(struct bt_ctf_event *event);