1 #ifndef _BABELTRACE_ITERATOR_INTERNAL_H
2 #define _BABELTRACE_ITERATOR_INTERNAL_H
7 * Internal iterator header
9 * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
11 * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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:
20 * The above copyright notice and this permission notice shall be included in
21 * all copies or substantial portions of the Software.
25 * struct babeltrace_iter: data structure representing an iterator on a trace
28 struct babeltrace_iter
{
29 struct ptr_heap
*stream_heap
;
30 struct bt_context
*ctx
;
31 struct trace_collection_pos
*end_pos
;
32 GArray
*callbacks
; /* Array of struct bt_stream_callbacks */
33 struct bt_callback_chain main_callbacks
; /* For all events */
35 * Flag indicating if dependency graph needs to be recalculated.
36 * Set by babeltrace_iter_add_callback(), and checked (and
37 * cleared) by upon entry into babeltrace_iter_read_event().
38 * babeltrace_iter_read_event() is responsible for calling dep
39 * graph calculation if it sees this flag set.
41 int recalculate_dep_graph
;
43 * Array of pointers to struct bt_dependencies, for garbage
44 * collection. We're not using a linked list here because each
45 * struct bt_dependencies can belong to more than one
51 #endif /* _BABELTRACE_ITERATOR_INTERNAL_H */