-struct trace_descriptor *ctf_text_open_trace(const char *collection_path,
- const char *path, int flags,
- void (*move_pos_slow)(struct ctf_stream_pos *pos, size_t offset,
+enum bt_loglevel {
+ BT_LOGLEVEL_EMERG = 0,
+ BT_LOGLEVEL_ALERT = 1,
+ BT_LOGLEVEL_CRIT = 2,
+ BT_LOGLEVEL_ERR = 3,
+ BT_LOGLEVEL_WARNING = 4,
+ BT_LOGLEVEL_NOTICE = 5,
+ BT_LOGLEVEL_INFO = 6,
+ BT_LOGLEVEL_DEBUG_SYSTEM = 7,
+ BT_LOGLEVEL_DEBUG_PROGRAM = 8,
+ BT_LOGLEVEL_DEBUG_PROCESS = 9,
+ BT_LOGLEVEL_DEBUG_MODULE = 10,
+ BT_LOGLEVEL_DEBUG_UNIT = 11,
+ BT_LOGLEVEL_DEBUG_FUNCTION = 12,
+ BT_LOGLEVEL_DEBUG_LINE = 13,
+ BT_LOGLEVEL_DEBUG = 14,
+};
+
+static
+struct bt_trace_descriptor *ctf_text_open_trace(const char *path, int flags,
+ void (*packet_seek)(struct bt_stream_pos *pos, size_t index,
+ int whence), FILE *metadata_fp);
+static
+int ctf_text_close_trace(struct bt_trace_descriptor *descriptor);
+
+static
+struct bt_trace_descriptor *ctf_metadata_open_trace(const char *path, int flags,
+ void (*packet_seek)(struct bt_stream_pos *pos, size_t index,