fix : callback type, doc and links to libbabeltrace
[babeltrace.git] / include / babeltrace / babeltrace.h
index 8fe9a9c69f3ef7798930d6b84358cfca725526ef..c77ea7827614cb4d89c84d5c05f8c7c22a695bb2 100644 (file)
@@ -17,7 +17,6 @@
  * all copies or substantial portions of the Software.
  */
 
-#include <glib.h>
 #include <babeltrace/context.h>
 #include <babeltrace/format.h>
 #include <babeltrace/iterator.h>
@@ -25,8 +24,6 @@
 #include <babeltrace/trace-handle.h>
 #include <babeltrace/ctf/events.h>
 
-typedef GQuark bt_event_name;
-
 /* Forward declarations */
 struct bt_iter;
 struct ctf_stream_event;
@@ -40,11 +37,6 @@ enum bt_cb_ret {
        BT_CB_ERROR_CONTINUE    = 3,
 };
 
-struct bt_ctf_data {
-       struct ctf_stream_event *event;
-       struct ctf_stream *stream;
-};
-
 /*
  * Receives a variable number of strings as parameter, ended with NULL.
  */
@@ -92,8 +84,8 @@ void babeltrace_dependencies_destroy(struct bt_dependencies *dep);
  * callbacks/read/add more callbacks/read some more.)
  */
 int bt_iter_add_callback(struct bt_iter *iter,
-               bt_event_name event, void *private_data, int flags,
-               enum bt_cb_ret (*callback)(struct bt_ctf_data *ctf_data,
+               bt_intern_str event, void *private_data, int flags,
+               enum bt_cb_ret (*callback)(struct bt_ctf_event *ctf_data,
                                           void *caller_data),
                struct bt_dependencies *depends,
                struct bt_dependencies *weak_depends,
This page took 0.023548 seconds and 4 git commands to generate.