lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / babeltrace.h
CommitLineData
924dc299
PP
1#ifndef BABELTRACE2_BABELTRACE_H
2#define BABELTRACE2_BABELTRACE_H
3fadfbc0
MJ
3
4/*
5 * Babeltrace API
6 *
4fa90f32 7 * Copyright 2010-2019 EfficiOS Inc. <http://www.efficios.com/>
3fadfbc0
MJ
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 * SOFTWARE.
26 */
27
4fa90f32
PP
28/*
29 * Tell the specific headers that they are included from this header.
30 *
31 * Do NOT define `__BT_IN_BABELTRACE_H` in user code.
32 */
33#ifndef __BT_IN_BABELTRACE_H
34# define __BT_IN_BABELTRACE_H
35#endif
36
37/* Need by some of the following included headers */
38#include <babeltrace2/func-status.h>
39
3fadfbc0 40/* Core API */
553c4bab
PP
41#include <babeltrace2/current-thread.h>
42#include <babeltrace2/error-cause-const.h>
43#include <babeltrace2/error-const.h>
3fadfbc0
MJ
44#include <babeltrace2/logging.h>
45#include <babeltrace2/property.h>
46#include <babeltrace2/types.h>
47#include <babeltrace2/util.h>
48#include <babeltrace2/value-const.h>
49#include <babeltrace2/value.h>
50#include <babeltrace2/version.h>
51
3fadfbc0
MJ
52/* Trace IR API */
53#include <babeltrace2/trace-ir/clock-class-const.h>
54#include <babeltrace2/trace-ir/clock-class.h>
55#include <babeltrace2/trace-ir/clock-snapshot-const.h>
56#include <babeltrace2/trace-ir/event-class-const.h>
57#include <babeltrace2/trace-ir/event-class.h>
58#include <babeltrace2/trace-ir/event-const.h>
59#include <babeltrace2/trace-ir/event.h>
60#include <babeltrace2/trace-ir/field-class-const.h>
61#include <babeltrace2/trace-ir/field-class.h>
62#include <babeltrace2/trace-ir/field-const.h>
63#include <babeltrace2/trace-ir/field-path-const.h>
64#include <babeltrace2/trace-ir/field.h>
65#include <babeltrace2/trace-ir/packet-const.h>
66#include <babeltrace2/trace-ir/packet-context-field.h>
67#include <babeltrace2/trace-ir/packet.h>
68#include <babeltrace2/trace-ir/stream-class-const.h>
69#include <babeltrace2/trace-ir/stream-class.h>
70#include <babeltrace2/trace-ir/stream-const.h>
71#include <babeltrace2/trace-ir/stream.h>
72#include <babeltrace2/trace-ir/trace-class-const.h>
73#include <babeltrace2/trace-ir/trace-class.h>
74#include <babeltrace2/trace-ir/trace-const.h>
75#include <babeltrace2/trace-ir/trace.h>
76
4fa90f32 77/* Component class API */
3fadfbc0
MJ
78#include <babeltrace2/graph/component-class-const.h>
79#include <babeltrace2/graph/component-class-filter-const.h>
80#include <babeltrace2/graph/component-class-filter.h>
81#include <babeltrace2/graph/component-class-sink-const.h>
82#include <babeltrace2/graph/component-class-sink.h>
83#include <babeltrace2/graph/component-class-source-const.h>
84#include <babeltrace2/graph/component-class-source.h>
85#include <babeltrace2/graph/component-class.h>
4fa90f32
PP
86#include <babeltrace2/graph/self-component-class-filter.h>
87#include <babeltrace2/graph/self-component-class-sink.h>
88#include <babeltrace2/graph/self-component-class-source.h>
89
90/* Component API */
3fadfbc0
MJ
91#include <babeltrace2/graph/component-const.h>
92#include <babeltrace2/graph/component-filter-const.h>
93#include <babeltrace2/graph/component-sink-const.h>
94#include <babeltrace2/graph/component-source-const.h>
4fa90f32
PP
95#include <babeltrace2/graph/self-component-filter.h>
96#include <babeltrace2/graph/self-component-port-input.h>
97#include <babeltrace2/graph/self-component-port-output.h>
98#include <babeltrace2/graph/self-component-port.h>
99#include <babeltrace2/graph/self-component-sink.h>
100#include <babeltrace2/graph/self-component-source.h>
101#include <babeltrace2/graph/self-component.h>
102
103/* Message iterator API */
104#include <babeltrace2/graph/message-iterator.h>
105#include <babeltrace2/graph/port-output-message-iterator.h>
106#include <babeltrace2/graph/self-component-port-input-message-iterator.h>
107#include <babeltrace2/graph/self-message-iterator.h>
108
109/* Message API */
3fadfbc0
MJ
110#include <babeltrace2/graph/message-const.h>
111#include <babeltrace2/graph/message-discarded-events-const.h>
112#include <babeltrace2/graph/message-discarded-events.h>
113#include <babeltrace2/graph/message-discarded-packets-const.h>
114#include <babeltrace2/graph/message-discarded-packets.h>
115#include <babeltrace2/graph/message-event-const.h>
116#include <babeltrace2/graph/message-event.h>
3fadfbc0
MJ
117#include <babeltrace2/graph/message-message-iterator-inactivity-const.h>
118#include <babeltrace2/graph/message-message-iterator-inactivity.h>
119#include <babeltrace2/graph/message-packet-beginning-const.h>
120#include <babeltrace2/graph/message-packet-beginning.h>
121#include <babeltrace2/graph/message-packet-end-const.h>
122#include <babeltrace2/graph/message-packet-end.h>
3fadfbc0
MJ
123#include <babeltrace2/graph/message-stream-beginning-const.h>
124#include <babeltrace2/graph/message-stream-beginning.h>
188edac1 125#include <babeltrace2/graph/message-stream-const.h>
3fadfbc0
MJ
126#include <babeltrace2/graph/message-stream-end-const.h>
127#include <babeltrace2/graph/message-stream-end.h>
4fa90f32
PP
128
129/* Graph API */
130#include <babeltrace2/graph/connection-const.h>
131#include <babeltrace2/graph/graph-const.h>
132#include <babeltrace2/graph/graph.h>
3fadfbc0
MJ
133#include <babeltrace2/graph/port-const.h>
134#include <babeltrace2/graph/port-input-const.h>
135#include <babeltrace2/graph/port-output-const.h>
4fa90f32
PP
136
137/* Query executor API */
3fadfbc0
MJ
138#include <babeltrace2/graph/query-executor-const.h>
139#include <babeltrace2/graph/query-executor.h>
4fa90f32
PP
140
141/* Plugin API */
142#include <babeltrace2/plugin/plugin-const.h>
143#include <babeltrace2/plugin/plugin-set-const.h>
144
145/* Plugin development */
146#include <babeltrace2/plugin/plugin-dev.h>
147
148/* Cancel private definitions */
149#undef __BT_FUNC_STATUS_OVERFLOW
150#undef __BT_FUNC_STATUS_INVALID_PARAMS
151#undef __BT_FUNC_STATUS_INVALID_OBJECT
152#undef __BT_FUNC_STATUS_MEMORY_ERROR
153#undef __BT_FUNC_STATUS_LOADING_ERROR
154#undef __BT_FUNC_STATUS_ERROR
155#undef __BT_FUNC_STATUS_OK
156#undef __BT_FUNC_STATUS_END
157#undef __BT_FUNC_STATUS_NOT_FOUND
158#undef __BT_FUNC_STATUS_AGAIN
159#undef __BT_FUNC_STATUS_UNSUPPORTED
160#undef __BT_FUNC_STATUS_CANCELED
161#undef __BT_IN_BABELTRACE_H
3fadfbc0 162
924dc299 163#endif /* BABELTRACE2_BABELTRACE_H */
This page took 0.035079 seconds and 4 git commands to generate.