Port: Fix libuuid compat on mingw
[babeltrace.git] / include / babeltrace / ctf-ir / trace-internal.h
index c3121cbd8ba54cbbc85c177a06b4c04ff74ed403..468b72f0f712c2cc752d65e8a8872594729b5467 100644 (file)
 #include <babeltrace/object-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/values.h>
+#include <babeltrace/types.h>
 #include <glib.h>
 #include <sys/types.h>
-#include <uuid/uuid.h>
+#include <babeltrace/compat/uuid-internal.h>
 
 enum field_type_alias {
        FIELD_TYPE_ALIAS_UINT5_T = 0,
@@ -51,7 +52,8 @@ struct bt_ctf_trace {
        struct bt_object base;
        GString *name;
        int frozen;
-       uuid_t uuid;
+       unsigned char uuid[BABELTRACE_UUID_LEN];
+       bt_bool uuid_set;
        enum bt_ctf_byte_order native_byte_order;
        struct bt_value *environment;
        GPtrArray *clocks; /* Array of pointers to bt_ctf_clock_class */
@@ -67,7 +69,8 @@ struct bt_ctf_trace {
         */
        int valid;
        GPtrArray *listeners; /* Array of struct listener_wrapper */
-       bool is_static;
+       GArray *is_static_listeners;
+       bt_bool is_static;
 };
 
 struct metadata_context {
@@ -87,7 +90,7 @@ int bt_ctf_trace_object_modification(struct bt_ctf_object *object,
                void *trace_ptr);
 
 BT_HIDDEN
-bool bt_ctf_trace_has_clock_class(struct bt_ctf_trace *trace,
+bt_bool bt_ctf_trace_has_clock_class(struct bt_ctf_trace *trace,
                struct bt_ctf_clock_class *clock_class);
 
 /**
@@ -118,7 +121,21 @@ is modified, \p listener is called with the new element and with
 @prenotnull{listener}
 @postrefcountsame{trace_class}
 */
-extern int bt_ctf_trace_add_listener(struct bt_ctf_trace *trace_class,
+BT_HIDDEN
+int bt_ctf_trace_add_listener(struct bt_ctf_trace *trace_class,
                bt_ctf_listener_cb listener, void *data);
 
+/*
+ * bt_ctf_trace_get_metadata_string: get metadata string.
+ *
+ * Get the trace's TSDL metadata. The caller assumes the ownership of the
+ * returned string.
+ *
+ * @param trace Trace instance.
+ *
+ * Returns the metadata string on success, NULL on error.
+ */
+BT_HIDDEN
+char *bt_ctf_trace_get_metadata_string(struct bt_ctf_trace *trace);
+
 #endif /* BABELTRACE_CTF_IR_TRACE_INTERNAL_H */
This page took 0.026145 seconds and 4 git commands to generate.