projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: ctf specific events.c needs to be within CTF plugin
[babeltrace.git]
/
lib
/
callbacks.c
diff --git
a/lib/callbacks.c
b/lib/callbacks.c
index aae8196ffeb5508947b2c947932dd389299b1e9c..fa212c9191e95fc5f5371201bf7883d22d9df05e 100644
(file)
--- a/
lib/callbacks.c
+++ b/
lib/callbacks.c
@@
-22,8
+22,10
@@
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/callbacks-internal.h>
#include <babeltrace/context.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/callbacks-internal.h>
#include <babeltrace/context.h>
+#include <babeltrace/context-internal.h>
#include <babeltrace/ctf-ir/metadata.h>
#include <babeltrace/iterator-internal.h>
#include <babeltrace/ctf-ir/metadata.h>
#include <babeltrace/iterator-internal.h>
+#include <babeltrace/ctf/events.h>
#include <inttypes.h>
static
#include <inttypes.h>
static
@@
-60,8
+62,8
@@
struct bt_dependencies *babeltrace_dependencies_create(const char *first, ...)
* bt_iter_add_callback: Add a callback to iterator.
*/
int bt_iter_add_callback(struct bt_iter *iter,
* bt_iter_add_callback: Add a callback to iterator.
*/
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 *private_data),
struct bt_dependencies *depends,
struct bt_dependencies *weak_depends,
void *private_data),
struct bt_dependencies *depends,
struct bt_dependencies *weak_depends,
@@
-176,7
+178,7
@@
void process_callbacks(struct bt_iter *iter,
struct bt_callback *cb;
int i;
enum bt_cb_ret ret;
struct bt_callback *cb;
int i;
enum bt_cb_ret ret;
- struct bt_ctf_
data
ctf_data;
+ struct bt_ctf_
event
ctf_data;
ctf_data.event = extract_ctf_stream_event(stream);
ctf_data.stream = stream;
ctf_data.event = extract_ctf_stream_event(stream);
ctf_data.stream = stream;
@@
-204,7
+206,7
@@
void process_callbacks(struct bt_iter *iter,
if (!bt_stream_cb || !bt_stream_cb->per_id_callbacks)
goto end;
if (!bt_stream_cb || !bt_stream_cb->per_id_callbacks)
goto end;
- if (stream->event_id > bt_stream_cb->per_id_callbacks->len)
+ if (stream->event_id >
=
bt_stream_cb->per_id_callbacks->len)
goto end;
bt_chain = &g_array_index(bt_stream_cb->per_id_callbacks,
struct bt_callback_chain, stream->event_id);
goto end;
bt_chain = &g_array_index(bt_stream_cb->per_id_callbacks,
struct bt_callback_chain, stream->event_id);
This page took
0.02489 seconds
and
4
git commands to generate.