summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
918be00)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#include <babeltrace/ctf-ir/event-class-internal.h>
#include <babeltrace/ctf-ir/stream-class.h>
#include <babeltrace/ctf-ir/stream-class-internal.h>
#include <babeltrace/ctf-ir/event-class-internal.h>
#include <babeltrace/ctf-ir/stream-class.h>
#include <babeltrace/ctf-ir/stream-class-internal.h>
+#include <babeltrace/ctf-ir/packet.h>
+#include <babeltrace/ctf-ir/packet-internal.h>
#include <babeltrace/ctf-ir/trace-internal.h>
#include <babeltrace/ctf-ir/validation-internal.h>
#include <babeltrace/ctf-ir/packet-internal.h>
#include <babeltrace/ctf-ir/trace-internal.h>
#include <babeltrace/ctf-ir/validation-internal.h>
#include <babeltrace/ctf-ir/packet-internal.h>
- if (!event || !payload) {
+ if (!event || !payload || event->frozen) {
int ret = 0;
struct bt_ctf_field_type *payload_type = NULL;
int ret = 0;
struct bt_ctf_field_type *payload_type = NULL;
- if (!event || !payload) {
+ if (!event || !payload || event->frozen) {
struct bt_ctf_field_type *field_type = NULL;
struct bt_ctf_stream_class *stream_class = NULL;
struct bt_ctf_field_type *field_type = NULL;
struct bt_ctf_stream_class *stream_class = NULL;
- if (!event || !header) {
+ if (!event || !header || event->frozen) {
int ret = 0;
struct bt_ctf_field_type *field_type = NULL;
int ret = 0;
struct bt_ctf_field_type *field_type = NULL;
- if (!event || !context) {
+ if (!event || !context || event->frozen) {
struct bt_ctf_field_type *field_type = NULL;
struct bt_ctf_stream_class *stream_class = NULL;
struct bt_ctf_field_type *field_type = NULL;
struct bt_ctf_stream_class *stream_class = NULL;
- if (!event || !stream_event_context) {
+ if (!event || !stream_event_context || event->frozen) {
int ret = 0;
struct bt_ctf_field *id_field = NULL, *timestamp_field = NULL;
int ret = 0;
struct bt_ctf_field *id_field = NULL, *timestamp_field = NULL;
+ if (!event || event->frozen) {
struct bt_ctf_stream *stream = NULL;
int ret = 0;
struct bt_ctf_stream *stream = NULL;
int ret = 0;
- if (!event || !packet) {
+ if (!event || !packet || event->frozen) {
+
+BT_HIDDEN
+void bt_ctf_event_freeze(struct bt_ctf_event *event)
+{
+ assert(event);
+ bt_ctf_packet_freeze(event->packet);
+ bt_ctf_field_freeze(event->event_header);
+ bt_ctf_field_freeze(event->stream_event_context);
+ bt_ctf_field_freeze(event->context_payload);
+ bt_ctf_field_freeze(event->fields_payload);
+ event->frozen = 1;
+}
struct bt_ctf_field *stream_event_context;
struct bt_ctf_field *context_payload;
struct bt_ctf_field *fields_payload;
struct bt_ctf_field *stream_event_context;
struct bt_ctf_field *context_payload;
struct bt_ctf_field *fields_payload;
BT_HIDDEN
int bt_ctf_event_populate_event_header(struct bt_ctf_event *event);
BT_HIDDEN
int bt_ctf_event_populate_event_header(struct bt_ctf_event *event);
+BT_HIDDEN
+void bt_ctf_event_freeze(struct bt_ctf_event *event);
+
#endif /* BABELTRACE_CTF_IR_EVENT_INTERNAL_H */
#endif /* BABELTRACE_CTF_IR_EVENT_INTERNAL_H */