struct ctf_stream;
struct ctf_event;
-#define CTF_TRACE_SET_FIELD(ctf_trace, field, value) \
+#define CTF_TRACE_SET_FIELD(ctf_trace, field) \
do { \
- (ctf_trace)->(field) = (value); \
(ctf_trace)->field_mask |= CTF_TRACE_ ## field; \
} while (0)
uint64_t minor;
uuid_t uuid;
uint64_t word_size;
+ int byte_order;
enum { /* Fields populated mask */
CTF_TRACE_major = (1U << 0),
} field_mask;
};
-#define CTF_STREAM_SET_FIELD(ctf_stream, field, value) \
+#define CTF_STREAM_SET_FIELD(ctf_stream, field) \
do { \
- (ctf_stream)->(field) = (value); \
(ctf_stream)->field_mask |= CTF_STREAM_ ## field; \
} while (0)