Pass stream pointer with callback caller data
[babeltrace.git] / include / babeltrace / babeltrace.h
index eb15de005843f1044636d41941fd49b4b1eec8d1..9522628f9740e0ce21ab4edf669647eaa8fa14e6 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include <glib.h>
+#include <stdint.h>
 
 typedef GQuark bt_event_name;
 
@@ -50,6 +51,11 @@ struct trace_collection_pos {
        } u;
 };
 
+struct bt_ctf_data {
+       struct ctf_stream_event *event;
+       struct ctf_stream *stream;
+};
+
 /*
  * babeltrace_iter_create - Allocate a trace collection iterator.
  *
@@ -162,8 +168,8 @@ void babeltrace_dependencies_destroy(struct bt_dependencies *dep);
  */
 int babeltrace_iter_add_callback(struct babeltrace_iter *iter,
                bt_event_name event, void *private_data, int flags,
-               enum bt_cb_ret (*callback)(void *private_data,
-                                       void *caller_data),
+               enum bt_cb_ret (*callback)(struct bt_ctf_data *ctf_data,
+                                          void *caller_data),
                struct bt_dependencies *depends,
                struct bt_dependencies *weak_depends,
                struct bt_dependencies *provides);
This page took 0.023858 seconds and 4 git commands to generate.