0f0e53780679fa246b30d1696d6843b08723b8b1
1 #ifndef _BABELTRACE_CALLBACKS_INTERNAL_H
2 #define _BABELTRACE_CALLBACKS_INTERNAL_H
7 * Internal callbacks 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 int prio
; /* Callback order priority. Lower first. Dynamically assigned from dependency graph. */
28 struct bt_dependencies
*depends
;
29 struct bt_dependencies
*weak_depends
;
30 struct bt_dependencies
*provides
;
31 enum bt_cb_ret (*callback
)(struct bt_ctf_data
*ctf_data
,
35 struct bt_callback_chain
{
36 GArray
*callback
; /* Array of struct bt_callback, ordered by priority */
40 * per id callbacks need to be per stream class because event ID vs
41 * event name mapping can vary from stream to stream.
43 struct bt_stream_callbacks
{
44 GArray
*per_id_callbacks
; /* Array of struct bt_callback_chain */
47 struct bt_dependencies
{
48 GArray
*deps
; /* Array of GQuarks */
49 int refcount
; /* free when decremented to 0 */
52 void process_callbacks(struct babeltrace_iter
*iter
,
53 struct ctf_stream
*stream
);
55 #endif /* _BABELTRACE_CALLBACKS_INTERNAL_H */
This page took 0.052583 seconds and 3 git commands to generate.