c78470ecab9fce91e4071984bc5470595c7f9200
[babeltrace.git] / include / babeltrace / ctf / events-internal.h
1 #ifndef _BABELTRACE_CTF_EVENTS_INTERNAL_H
2 #define _BABELTRACE_CTF_EVENTS_INTERNAL_H
3
4 /*
5 * BabelTrace
6 *
7 * CTF events API (internal)
8 *
9 * Copyright 2011-2012 EfficiOS Inc. and Linux Foundation
10 *
11 * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 * Julien Desfossez <julien.desfossez@efficios.com>
13 *
14 * Permission is hereby granted, free of charge, to any person obtaining
15 * a copy of this software and associated documentation files (the
16 * "Software"), to deal in the Software without restriction, including
17 * without limitation the rights to use, copy, modify, merge, publish,
18 * distribute, sublicense, and/or sell copies of the Software, and to
19 * permit persons to whom the Software is furnished to do so, subject to
20 * the following conditions:
21 *
22 * The above copyright notice and this permission notice shall be
23 * included in all copies or substantial portions of the Software.
24 */
25
26 #include <babeltrace/iterator-internal.h>
27 #include <babeltrace/ctf/callbacks.h>
28 #include <babeltrace/ctf/callbacks-internal.h>
29 #include <glib.h>
30
31 struct bt_ctf_iter {
32 struct bt_iter parent;
33 struct bt_ctf_event current_ctf_event; /* last read event */
34 GArray *callbacks; /* Array of struct bt_stream_callbacks */
35 struct bt_callback_chain main_callbacks; /* For all events */
36 /*
37 * Flag indicating if dependency graph needs to be recalculated.
38 * Set by bt_iter_add_callback(), and checked (and
39 * cleared) by upon entry into bt_iter_read_event().
40 * bt_iter_read_event() is responsible for calling dep
41 * graph calculation if it sees this flag set.
42 */
43 int recalculate_dep_graph;
44 /*
45 * Array of pointers to struct bt_dependencies, for garbage
46 * collection. We're not using a linked list here because each
47 * struct bt_dependencies can belong to more than one
48 * bt_iter.
49 */
50 GPtrArray *dep_gc;
51 };
52
53 #endif /*_BABELTRACE_CTF_EVENTS_INTERNAL_H */
This page took 0.029373 seconds and 3 git commands to generate.