X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Fevent-internal.h;h=1753f964d53d0caa9da8137e96b3ef548872584d;hb=e2f7325d1e58710ee928373592adcee466f93d06;hp=0b49567257303adb488e3be165e77ba2a4a26dfe;hpb=d94d92ac6656fd252a5d7bb4f6c76935ba18e62e;p=babeltrace.git diff --git a/include/babeltrace/trace-ir/event-internal.h b/include/babeltrace/trace-ir/event-internal.h index 0b495672..1753f964 100644 --- a/include/babeltrace/trace-ir/event-internal.h +++ b/include/babeltrace/trace-ir/event-internal.h @@ -2,10 +2,9 @@ #define BABELTRACE_TRACE_IR_EVENT_INTERNAL_H /* + * Copyright 2017-2018 Philippe Proulx * Copyright 2013, 2014 Jérémie Galarneau * - * Author: Jérémie Galarneau - * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -32,15 +31,15 @@ #include #include -#include +#include #include #include #include #include #include #include -#include -#include +#include +#include #include #include #include @@ -48,12 +47,18 @@ #include #define BT_ASSERT_PRE_EVENT_HOT(_event) \ - BT_ASSERT_PRE_HOT(((struct bt_event *) (_event)), "Event", ": %!+e", (_event)) + BT_ASSERT_PRE_HOT(((const struct bt_event *) (_event)), \ + "Event", ": %!+e", (_event)) struct bt_event { struct bt_object base; + + /* Owned by this */ struct bt_event_class *class; + + /* Owned by this */ struct bt_packet *packet; + struct bt_field_wrapper *header_field; struct bt_field *common_context_field; struct bt_field *specific_context_field; @@ -69,7 +74,7 @@ BT_HIDDEN struct bt_event *bt_event_new(struct bt_event_class *event_class); BT_HIDDEN -void _bt_event_set_is_frozen(struct bt_event *event, bool is_frozen); +void _bt_event_set_is_frozen(const struct bt_event *event, bool is_frozen); #ifdef BT_DEV_MODE # define bt_event_set_is_frozen _bt_event_set_is_frozen