ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git] / formats / ctf / ctf.c
index 9b5302199e17391e0ec73b90d078f44bf0680e27..475d6f72f3e3af0936b078af14c448926fc947b0 100644 (file)
@@ -159,6 +159,14 @@ struct bt_format ctf_format = {
        .convert_index_timestamp = ctf_convert_index_timestamp,
 };
 
+void bt_ctf_hook(void)
+{
+       /*
+        * Dummy function to prevent the linker from discarding this format as
+        * "unused" in static builds.
+        */
+}
+
 static
 int ctf_timestamp_begin(struct bt_trace_descriptor *descriptor,
                struct bt_trace_handle *handle, enum bt_clock_type type,
@@ -1407,7 +1415,7 @@ int ctf_trace_metadata_stream_read(struct ctf_trace *td, FILE **fp,
         * because its size includes garbage at the end (after final
         * \0). This is the allocated size, not the actual string size.
         */
-       out = babeltrace_open_memstream(buf, &size);
+       out = bt_open_memstream(buf, &size);
        if (out == NULL) {
                perror("Metadata open_memstream");
                return -errno;
@@ -1423,7 +1431,7 @@ int ctf_trace_metadata_stream_read(struct ctf_trace *td, FILE **fp,
                }
        }
        /* close to flush the buffer */
-       ret = babeltrace_close_memstream(buf, &size, out);
+       ret = bt_close_memstream(buf, &size, out);
        if (ret < 0) {
                int closeret;
 
@@ -1445,7 +1453,7 @@ int ctf_trace_metadata_stream_read(struct ctf_trace *td, FILE **fp,
                *fp = NULL;
                return -ENOENT;
        }
-       *fp = babeltrace_fmemopen(*buf, buflen, "rb");
+       *fp = bt_fmemopen(*buf, buflen, "rb");
        if (!*fp) {
                perror("Metadata fmemopen");
                return -errno;
This page took 0.02306 seconds and 4 git commands to generate.