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