X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fcallbacks-internal.h;fp=include%2Fbabeltrace%2Fctf%2Fcallbacks-internal.h;h=0000000000000000000000000000000000000000;hp=014f4b9841d1ff1000c935fe69965196aacfdff8;hb=dc3fffef7b84cc4af1a7c99828fd57a106cd2257;hpb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10 diff --git a/include/babeltrace/ctf/callbacks-internal.h b/include/babeltrace/ctf/callbacks-internal.h deleted file mode 100644 index 014f4b98..00000000 --- a/include/babeltrace/ctf/callbacks-internal.h +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef _BABELTRACE_CALLBACKS_INTERNAL_H -#define _BABELTRACE_CALLBACKS_INTERNAL_H - -/* - * BabelTrace - * - * Internal callbacks header - * - * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation - * - * Author: Mathieu Desnoyers - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#include -#include - -struct bt_ctf_iter; -struct ctf_stream_definition; - -struct bt_callback { - int prio; /* Callback order priority. Lower first. Dynamically assigned from dependency graph. */ - void *private_data; - int flags; - struct bt_dependencies *depends; - struct bt_dependencies *weak_depends; - struct bt_dependencies *provides; - enum bt_cb_ret (*callback)(struct bt_ctf_event *ctf_data, - void *private_data); -}; - -struct bt_callback_chain { - GArray *callback; /* Array of struct bt_callback, ordered by priority */ -}; - -/* - * per id callbacks need to be per stream class because event ID vs - * event name mapping can vary from stream to stream. - */ -struct bt_stream_callbacks { - GArray *per_id_callbacks; /* Array of struct bt_callback_chain */ -}; - -struct bt_dependencies { - GArray *deps; /* Array of GQuarks */ - int refcount; /* free when decremented to 0 */ -}; - -BT_HIDDEN -void process_callbacks(struct bt_ctf_iter *iter, struct ctf_stream_definition *stream); - -#endif /* _BABELTRACE_CALLBACKS_INTERNAL_H */