lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / ctf-ir / trace.h
index e855e636fa1d8f1f9e8c065e132fc13f3304f0c4..949672266188b879f6faabe658d82c1890312a8b 100644 (file)
@@ -44,9 +44,6 @@
 extern "C" {
 #endif
 
-struct bt_field_type;
-struct bt_value;
-
 /**
 @defgroup ctfirtraceclass CTF IR trace class
 @ingroup ctfir
@@ -152,6 +149,9 @@ struct bt_trace;
 struct bt_stream;
 struct bt_stream_class;
 struct bt_clock_class;
+struct bt_field_type;
+struct bt_value;
+struct bt_packet_header_field;
 
 /**
 @brief User function type to use with
@@ -588,6 +588,9 @@ struct bt_field_type *bt_trace_get_packet_header_field_type(
        return bt_get(bt_trace_borrow_packet_header_field_type(trace_class));
 }
 
+extern struct bt_packet_header_field *bt_trace_create_packet_header_field(
+               struct bt_trace *trace);
+
 /**
 @brief Sets the packet header field type of the CTF IR trace class
        \p trace_class to \p packet_header_type, or unsets the current packet
This page took 0.023655 seconds and 4 git commands to generate.