Add missing context-internal.h
[babeltrace.git] / include / babeltrace / context-internal.h
CommitLineData
f5b30718
MD
1#ifndef _BABELTRACE_CONTEXT_INTERNAL_H
2#define _BABELTRACE_CONTEXT_INTERNAL_H
3
4/*
5 * BabelTrace
6 *
7 * context header (internal)
8 *
9 * Copyright 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
26struct trace_collection;
27struct GHashTable;
28
29/*
30 * The context represents the object in which a trace_collection is
31 * open. As long as this structure is allocated, the trace_collection is
32 * open and the traces it contains can be read and seeked by the
33 * iterators and callbacks.
34 *
35 * It has to be created with the bt_context_create() function and
36 * destroyed by calling one more bt_context_put() than bt_context_get()
37 */
38struct bt_context {
39 struct trace_collection *tc;
40 GHashTable *trace_handles;
41 int refcount;
42 int last_trace_handle_id;
43};
44
45#endif /* _BABELTRACE_CONTEXT_INTERNAL_H */
This page took 0.023732 seconds and 4 git commands to generate.