+++ /dev/null
-import re
-
-
-class _Section:
- def __init__(self, title, filenames):
- self.title = title
- self.filenames = filenames
-
-
-def _get_sections(file):
- sections = []
- cur_title = None
- cur_filenames = []
-
- for line in file:
- m = re.match(r'^# (.+API.*)$', line)
-
- if m:
- if cur_filenames:
- sections.append(_Section(cur_title, cur_filenames))
- cur_title = None
- cur_filenames = []
-
- cur_title = m.group(1)
- continue
-
- m = re.match(r'^\s+(babeltrace2/.+\.h).*$', line)
-
- if m:
- if m.group(1) != 'babeltrace2/babeltrace.h':
- cur_filenames.append(m.group(1))
-
- continue
-
- if re.match(r'^noinst_HEADERS.*', line):
- break
-
- if cur_filenames:
- sections.append(_Section(cur_title, cur_filenames))
-
- return sections
-
-
-def _c_includes_from_sections(sections):
- src = ''
-
- for section in sections:
- # CTF writer is not part of the Babeltrace library
- if 'ctf' in section.title.lower():
- continue
-
- src += '/* {} */\n'.format(section.title)
- lines = []
-
- for filename in sorted(section.filenames):
- # not part of the API
- if 'func-status' in filename:
- continue
-
- lines.append('#include <{}>\n'.format(filename))
-
- lines.sort()
- src += ''.join(lines)
- src += '\n'
-
- return src[:-1]
-
-
-def _main():
- with open('include/Makefile.am') as f:
- sections = _get_sections(f)
-
- print('''#ifndef BABELTRACE2_BABELTRACE_H
-#define BABELTRACE2_BABELTRACE_H
-
-/*
- * Babeltrace API
- *
- * Copyright 2010-2018 EfficiOS Inc. <http://www.efficios.com/>
- *
- * 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.
- */
-''')
- print(_c_includes_from_sections(sections))
- print('#endif /* BABELTRACE2_BABELTRACE_H */')
-
-
-if __name__ == '__main__':
- _main()
babeltrace2includedir = "$(includedir)/babeltrace2"
babeltrace2include_HEADERS = \
babeltrace2/babeltrace.h \
- babeltrace2/func-status.h \
babeltrace2/current-thread.h \
babeltrace2/error-cause-const.h \
babeltrace2/error-const.h \
+ babeltrace2/func-status.h \
babeltrace2/logging.h \
babeltrace2/property.h \
babeltrace2/types.h \
- babeltrace2/undef-func-status.h \
babeltrace2/util.h \
babeltrace2/value-const.h \
babeltrace2/value.h \
/*
* Babeltrace API
*
- * Copyright 2010-2018 EfficiOS Inc. <http://www.efficios.com/>
+ * Copyright 2010-2019 EfficiOS Inc. <http://www.efficios.com/>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* SOFTWARE.
*/
+/*
+ * Tell the specific headers that they are included from this header.
+ *
+ * Do NOT define `__BT_IN_BABELTRACE_H` in user code.
+ */
+#ifndef __BT_IN_BABELTRACE_H
+# define __BT_IN_BABELTRACE_H
+#endif
+
+/* Need by some of the following included headers */
+#include <babeltrace2/func-status.h>
+
/* Core API */
#include <babeltrace2/current-thread.h>
#include <babeltrace2/error-cause-const.h>
#include <babeltrace2/trace-ir/trace-const.h>
#include <babeltrace2/trace-ir/trace.h>
-/* Plugin and plugin development API */
-#include <babeltrace2/plugin/plugin-const.h>
-#include <babeltrace2/plugin/plugin-dev.h>
-#include <babeltrace2/plugin/plugin-set-const.h>
-
-/* Graph, component, and message API */
+/* Component class API */
#include <babeltrace2/graph/component-class-const.h>
#include <babeltrace2/graph/component-class-filter-const.h>
#include <babeltrace2/graph/component-class-filter.h>
#include <babeltrace2/graph/component-class-source-const.h>
#include <babeltrace2/graph/component-class-source.h>
#include <babeltrace2/graph/component-class.h>
+#include <babeltrace2/graph/self-component-class-filter.h>
+#include <babeltrace2/graph/self-component-class-sink.h>
+#include <babeltrace2/graph/self-component-class-source.h>
+
+/* Component API */
#include <babeltrace2/graph/component-const.h>
#include <babeltrace2/graph/component-filter-const.h>
#include <babeltrace2/graph/component-sink-const.h>
#include <babeltrace2/graph/component-source-const.h>
-#include <babeltrace2/graph/connection-const.h>
-#include <babeltrace2/graph/graph-const.h>
-#include <babeltrace2/graph/graph.h>
+#include <babeltrace2/graph/self-component-filter.h>
+#include <babeltrace2/graph/self-component-port-input.h>
+#include <babeltrace2/graph/self-component-port-output.h>
+#include <babeltrace2/graph/self-component-port.h>
+#include <babeltrace2/graph/self-component-sink.h>
+#include <babeltrace2/graph/self-component-source.h>
+#include <babeltrace2/graph/self-component.h>
+
+/* Message iterator API */
+#include <babeltrace2/graph/message-iterator.h>
+#include <babeltrace2/graph/port-output-message-iterator.h>
+#include <babeltrace2/graph/self-component-port-input-message-iterator.h>
+#include <babeltrace2/graph/self-message-iterator.h>
+
+/* Message API */
#include <babeltrace2/graph/message-const.h>
#include <babeltrace2/graph/message-discarded-events-const.h>
#include <babeltrace2/graph/message-discarded-events.h>
#include <babeltrace2/graph/message-discarded-packets.h>
#include <babeltrace2/graph/message-event-const.h>
#include <babeltrace2/graph/message-event.h>
-#include <babeltrace2/graph/message-iterator.h>
#include <babeltrace2/graph/message-message-iterator-inactivity-const.h>
#include <babeltrace2/graph/message-message-iterator-inactivity.h>
#include <babeltrace2/graph/message-packet-beginning-const.h>
#include <babeltrace2/graph/message-stream-const.h>
#include <babeltrace2/graph/message-stream-end-const.h>
#include <babeltrace2/graph/message-stream-end.h>
+
+/* Graph API */
+#include <babeltrace2/graph/connection-const.h>
+#include <babeltrace2/graph/graph-const.h>
+#include <babeltrace2/graph/graph.h>
#include <babeltrace2/graph/port-const.h>
#include <babeltrace2/graph/port-input-const.h>
#include <babeltrace2/graph/port-output-const.h>
-#include <babeltrace2/graph/port-output-message-iterator.h>
+
+/* Query executor API */
#include <babeltrace2/graph/query-executor-const.h>
#include <babeltrace2/graph/query-executor.h>
-#include <babeltrace2/graph/self-component-class-filter.h>
-#include <babeltrace2/graph/self-component-class-sink.h>
-#include <babeltrace2/graph/self-component-class-source.h>
-#include <babeltrace2/graph/self-component-filter.h>
-#include <babeltrace2/graph/self-component-port-input-message-iterator.h>
-#include <babeltrace2/graph/self-component-port-input.h>
-#include <babeltrace2/graph/self-component-port-output.h>
-#include <babeltrace2/graph/self-component-port.h>
-#include <babeltrace2/graph/self-component-sink.h>
-#include <babeltrace2/graph/self-component-source.h>
-#include <babeltrace2/graph/self-component.h>
-#include <babeltrace2/graph/self-message-iterator.h>
+
+/* Plugin API */
+#include <babeltrace2/plugin/plugin-const.h>
+#include <babeltrace2/plugin/plugin-set-const.h>
+
+/* Plugin development */
+#include <babeltrace2/plugin/plugin-dev.h>
+
+/* Cancel private definitions */
+#undef __BT_FUNC_STATUS_OVERFLOW
+#undef __BT_FUNC_STATUS_INVALID_PARAMS
+#undef __BT_FUNC_STATUS_INVALID_OBJECT
+#undef __BT_FUNC_STATUS_MEMORY_ERROR
+#undef __BT_FUNC_STATUS_LOADING_ERROR
+#undef __BT_FUNC_STATUS_ERROR
+#undef __BT_FUNC_STATUS_OK
+#undef __BT_FUNC_STATUS_END
+#undef __BT_FUNC_STATUS_NOT_FOUND
+#undef __BT_FUNC_STATUS_AGAIN
+#undef __BT_FUNC_STATUS_UNSUPPORTED
+#undef __BT_FUNC_STATUS_CANCELED
+#undef __BT_IN_BABELTRACE_H
#endif /* BABELTRACE2_BABELTRACE_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdarg.h>
/*
*/
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_CURRENT_THREAD_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stddef.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stddef.h>
/*
- * No include guards here: this header is included by a public header to
- * get the `__BT_FUNC_STATUS_*` definitions locally, and then
- * <babeltrace2/undef-func-status.h> is included at the end of the
- * header to undefine all those definitions.
- *
- * If we forget to include <babeltrace2/undef-func-status.h> at the end
- * of a public header, we want to get the "redefined" compiler warning
- * to catch it.
+ * No include guards here: it is safe to include this file multiple
+ * times.
*/
/*
* SOFTWARE.
*/
-/*
- * This is just extra protection, in case the user tries to include
- * <babeltrace2/func-status.h> in user code: this is a redminder that
- * this header is reserved for internal use.
- *
- * The correct way for a public header to include this is:
- *
- * #define __BT_FUNC_STATUS_ENABLE
- * #include <babeltrace2/func-status.h>
- * #undef __BT_FUNC_STATUS_ENABLE
- */
-#ifndef __BT_FUNC_STATUS_ENABLE
-# error Do NOT include <babeltrace2/func-status.h> in user code.
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
#endif
/*
*/
/* Value is too large for the given data type */
-#define __BT_FUNC_STATUS_OVERFLOW -75
+#ifndef __BT_FUNC_STATUS_OVERFLOW
+# define __BT_FUNC_STATUS_OVERFLOW -75
+#endif
/* Invalid query parameters */
-#define __BT_FUNC_STATUS_INVALID_PARAMS -24
+#ifndef __BT_FUNC_STATUS_INVALID_PARAMS
+# define __BT_FUNC_STATUS_INVALID_PARAMS -24
+#endif
/* Invalid query object */
-#define __BT_FUNC_STATUS_INVALID_OBJECT -23
+#ifndef __BT_FUNC_STATUS_INVALID_OBJECT
+# define __BT_FUNC_STATUS_INVALID_OBJECT -23
+#endif
/* Memory allocation error */
-#define __BT_FUNC_STATUS_MEMORY_ERROR -12
+#ifndef __BT_FUNC_STATUS_MEMORY_ERROR
+# define __BT_FUNC_STATUS_MEMORY_ERROR -12
+#endif
/* Plugin loading error */
-#define __BT_FUNC_STATUS_LOADING_ERROR -2
+#ifndef __BT_FUNC_STATUS_LOADING_ERROR
+# define __BT_FUNC_STATUS_LOADING_ERROR -2
+#endif
/* General error */
-#define __BT_FUNC_STATUS_ERROR -1
+#ifndef __BT_FUNC_STATUS_ERROR
+# define __BT_FUNC_STATUS_ERROR -1
+#endif
/* Saul Goodman */
-#define __BT_FUNC_STATUS_OK 0
+#ifndef __BT_FUNC_STATUS_OK
+# define __BT_FUNC_STATUS_OK 0
+#endif
/* End of iteration/consumption */
-#define __BT_FUNC_STATUS_END 1
+#ifndef __BT_FUNC_STATUS_END
+# define __BT_FUNC_STATUS_END 1
+#endif
/* Something can't be found */
-#define __BT_FUNC_STATUS_NOT_FOUND 2
+#ifndef __BT_FUNC_STATUS_NOT_FOUND
+# define __BT_FUNC_STATUS_NOT_FOUND 2
+#endif
/* Try operation again later */
-#define __BT_FUNC_STATUS_AGAIN 11
+#ifndef __BT_FUNC_STATUS_AGAIN
+# define __BT_FUNC_STATUS_AGAIN 11
+#endif
/* Unsupported operation */
-#define __BT_FUNC_STATUS_UNSUPPORTED 95
+#ifndef __BT_FUNC_STATUS_UNSUPPORTED
+# define __BT_FUNC_STATUS_UNSUPPORTED 95
+#endif
/* Object is canceled */
-#define __BT_FUNC_STATUS_CANCELED 125
+#ifndef __BT_FUNC_STATUS_CANCELED
+# define __BT_FUNC_STATUS_CANCELED 125
+#endif
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_bool, bt_component_class */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_component_class, bt_component_class_filter,
* __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_component_class_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_component_class, bt_component_class_sink, __BT_UPCAST_CONST */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_component_class_*_status */
/* For bt_logging_level */
#include <babeltrace2/logging.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_SINK_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_component_class, bt_component_class_source,
* __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_component_class_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_component_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_component_class_type */
#include <babeltrace2/graph/component-class-const.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_bool, bt_port_input, bt_port_output, bt_connection */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_bool, bt_graph */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_bool, bt_component, bt_component_class,
* bt_component_class_filter, bt_component_class_sink,
/* For bt_logging_level */
#include <babeltrace2/logging.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_GRAPH_GRAPH_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_clock_snapshot, bt_stream */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_message, bt_self_message_iterator, bt_stream */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_clock_snapshot, bt_stream */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_message, bt_self_message_iterator, bt_stream */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_bool, bt_message, bt_event. bt_clock_class, bt_clock_snapshot */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
* SOFTWARE.
*/
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
#ifdef __cplusplus
extern "C" {
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_GRAPH_MESSAGE_ITERATOR_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_clock_snapshot */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_self_message_iterator, bt_message, bt_clock_class */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_packet, bt_clock_snapshot, bt_clock_class */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_message, bt_self_message_iterator, bt_packet */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_packet, bt_clock_snapshot, bt_clock_class */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_message, bt_self_message_iterator, bt_packet */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_clock_snapshot, bt_stream */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_self_message_iterator, bt_stream */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_clock_snapshot, bt_stream */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_message, bt_self_message_iterator, bt_stream */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_bool, bt_port, bt_connection, bt_component */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_port, bt_port_input, __BT_UPCAST_CONST */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_port, bt_port_output, __BT_UPCAST_CONST */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_message_iterator_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_bool, bt_query_executor */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_query_executor, bt_component_class, bt_value */
#include <babeltrace2/types.h>
/* For bt_logging_level */
#include <babeltrace2/logging.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_GRAPH_QUERY_EXECUTOR_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_component_class_filter, bt_self_component_class_filter,
* __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_component_class_sink, bt_self_component_class_sink,
* __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_component_class_source, bt_self_component_class_source,
* __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_self_component_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_message_iterator_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_port_input, bt_self_component_port,
* bt_self_component_port_input, __BT_UPCAST, __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_port_output, bt_self_component_port,
* bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_port, bt_self_component_port, bt_self_component,
* bt_connection, __BT_UPCAST_CONST
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_self_component_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_self_component_*_status */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_component, bt_self_component, __BT_UPCAST */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_self_component, bt_self_message_iterator, bt_self_port_output */
#include <babeltrace2/types.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stddef.h>
/* For bt_property_availability */
#include <babeltrace2/property.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_PLUGIN_PLUGIN_CONST_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_component_class_type */
/* For bt_self_plugin */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
/*
* _BT_HIDDEN: set the hidden attribute for internal functions
* On Windows, symbols are local unless explicitly exported,
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_PLUGIN_PLUGIN_DEV_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_plugin, bt_plugin_set */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_bool, bt_uuid, bt_clock_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_CLOCK_CLASS_CONST_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_bool, bt_uuid, bt_clock_class, bt_trace_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_CLOCK_CLASS_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_clock_class, bt_clock_snapshot */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_CONST_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_property_availability */
#include <babeltrace2/property.h>
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_event_class_log_level */
/* For bt_event_class, bt_stream_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_EVENT_CLASS_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_event, bt_event_class, bt_field, bt_packet */
#include <babeltrace2/types.h>
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_event, bt_event_class, bt_field, bt_packet */
#include <babeltrace2/types.h>
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/*
* For bt_bool, bt_field_class, bt_field_path,
* bt_field_class_enumeration_mapping,
#include <stdint.h>
#include <stddef.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_FIELD_CLASS_CONST_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stddef.h>
/* For bt_field_class_integer_preferred_display_base */
#include <babeltrace2/trace-ir/field-class-const.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_FIELD_CLASS_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_field_class_type */
/* For bt_field, bt_field_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_FIELD_CONST_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_field_path, bt_field_path_item */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_field, bt_field_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_FIELD_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_property_availability */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_stream_class, bt_packet_context_field, bt_field */
#include <babeltrace2/types.h>
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_packet, bt_packet_context_field, bt_stream */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_PACKET_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
*/
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_STREAM_CLASS_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
/* For bt_trace, bt_stream, bt_stream_class */
#include <babeltrace2/types.h>
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_trace, bt_stream, bt_stream_class */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_STREAM_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
*/
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_TRACE_CLASS_CONST_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_bool, bt_trace_class, bt_stream_class, bt_self_component */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_TRACE_CLASS_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/*
*/
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_TRACE_CONST_H */
* http://www.efficios.com/ctf
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* For bt_bool, bt_uuid, bt_trace, bt_trace_class, bt_stream */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_TRACE_IR_TRACE_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
/* Internal use */
+++ /dev/null
-#ifndef BABELTRACE2_UNDEF_FUNC_STATUS_H
-#define BABELTRACE2_UNDEF_FUNC_STATUS_H
-
-/*
- * Copyright (c) 2019 Philippe Proulx <pproulx@efficios.com>
- *
- * 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.
- */
-
-#undef __BT_FUNC_STATUS_OVERFLOW
-#undef __BT_FUNC_STATUS_INVALID_PARAMS
-#undef __BT_FUNC_STATUS_INVALID_OBJECT
-#undef __BT_FUNC_STATUS_MEMORY_ERROR
-#undef __BT_FUNC_STATUS_LOADING_ERROR
-#undef __BT_FUNC_STATUS_ERROR
-#undef __BT_FUNC_STATUS_OK
-#undef __BT_FUNC_STATUS_END
-#undef __BT_FUNC_STATUS_NOT_FOUND
-#undef __BT_FUNC_STATUS_AGAIN
-#undef __BT_FUNC_STATUS_UNSUPPORTED
-#undef __BT_FUNC_STATUS_CANCELED
-
-#endif /* BABELTRACE2_UNDEF_FUNC_STATUS_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#ifdef __cplusplus
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stddef.h>
/* For bt_bool, bt_value */
#include <babeltrace2/types.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_VALUE_CONST_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <stdint.h>
#include <stddef.h>
/* For bt_value_type */
#include <babeltrace2/value-const.h>
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
-
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE2_VALUE_H */
* SOFTWARE.
*/
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
#define BT_LOG_TAG "BT2-PY"
#include "logging.h"
+/*
+ * Include before `<babeltrace2/func-status.h>` because
+ * `<babeltrace2/babeltrace.h>` removes the `__BT_IN_BABELTRACE_H`
+ * definition.
+ */
#include <babeltrace2/babeltrace.h>
/*
* This is not part of the API, but because those bindings reside within
* the project, we take the liberty to use them.
*/
-#define __BT_FUNC_STATUS_ENABLE
+#define __BT_IN_BABELTRACE_H
#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
#include "common/assert.h"
#include "py-common/py-common.h"
$result = $1;
}
+/*
+ * Define `__BT_IN_BABELTRACE_H` to allow specific headers to be
+ * included. This remains defined as long as we don't include the main
+ * header, `<babeltrace2/babeltrace.h>`.
+ */
+#define __BT_IN_BABELTRACE_H
+
/* Property enumeration */
%include <babeltrace2/property.h>
/* Common function status codes */
-#define __BT_FUNC_STATUS_ENABLE
%include <babeltrace2/func-status.h>
/* Per-module interface files */
#include <stdlib.h>
#include <unistd.h>
-#include <babeltrace2/trace-ir/event-class-const.h>
-#include <babeltrace2/trace-ir/field-class-const.h>
-#include <babeltrace2/trace-ir/field-path-const.h>
-#include <babeltrace2/logging.h>
-#include <babeltrace2/value.h>
+#include <babeltrace2/babeltrace.h>
-#define __BT_FUNC_STATUS_ENABLE
+#define __BT_IN_BABELTRACE_H
#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
#include "common/assert.h"
#include "common/macros.h"
return ret;
}
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE_COMMON_INTERNAL_H */
* SOFTWARE.
*/
-#include <babeltrace2/version.h>
-#include <babeltrace2/types.h>
+#include <babeltrace2/babeltrace.h>
#include <stdlib.h>
int bt_version_get_major(void)
#define BT_LOG_TAG "LIB/CUR-THREAD"
#include "lib/logging.h"
-#include <babeltrace2/current-thread.h>
+#include <babeltrace2/babeltrace.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdint.h>
-#include <babeltrace2/error-const.h>
-#include <babeltrace2/error-cause-const.h>
+#include <babeltrace2/babeltrace.h>
#include "error.h"
#include "graph/message/iterator.h"
#include <stdarg.h>
#include <glib.h>
-#include <babeltrace2/error-const.h>
-#include <babeltrace2/error-cause-const.h>
+#include <babeltrace2/babeltrace.h>
#include "lib/object.h"
#include "common/macros.h"
* SOFTWARE.
*/
-#define __BT_FUNC_STATUS_ENABLE
+#define __BT_IN_BABELTRACE_H
#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
/*
* Aliases without a `__` prefix for internal code: this is just easier
#define BT_FUNC_STATUS_UNSUPPORTED __BT_FUNC_STATUS_UNSUPPORTED
#define BT_FUNC_STATUS_CANCELED __BT_FUNC_STATUS_CANCELED
-#include <babeltrace2/undef-func-status.h>
-
#endif /* BABELTRACE_FUNC_STATUS_INTERNAL_H */
#include <glib.h>
#include "common/common.h"
#include "common/uuid.h"
-#include <babeltrace2/trace-ir/event-const.h>
-#include <babeltrace2/trace-ir/packet-const.h>
-#include <babeltrace2/trace-ir/stream-const.h>
-#include <babeltrace2/current-thread.h>
+#include <babeltrace2/babeltrace.h>
#include "logging.h"
#include "assert-pre.h"
*/
#include <stdlib.h>
-#include <babeltrace2/logging.h>
-#include <babeltrace2/version.h>
+#include <babeltrace2/babeltrace.h>
#define BT_LOG_TAG "LIB/LOGGING"
#include "lib/logging.h"
*/
#include "common/assert.h"
-#include <babeltrace2/property.h>
-#include <babeltrace2/types.h>
+#include <babeltrace2/babeltrace.h>
#include <glib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <string.h>
#include <inttypes.h>
-#include <babeltrace2/util.h>
+#include <babeltrace2/babeltrace.h>
#include "lib/trace-ir/utils.h"
bt_util_status bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles,
#include <string.h>
#include <string.h>
#include <inttypes.h>
+#include <babeltrace2/babeltrace.h>
+
#include "compat/compiler.h"
#include "common/common.h"
-#include <babeltrace2/value-const.h>
-#include <babeltrace2/value.h>
#include "compat/glib.h"
-#include <babeltrace2/types.h>
#include "lib/assert-pre.h"
#include "lib/value.h"
#include "common/assert.h"
* SOFTWARE.
*/
-#include "lib/object.h"
-#include <babeltrace2/value.h>
-#include <babeltrace2/value-const.h>
-#include <babeltrace2/types.h>
#include <glib.h>
+#include <babeltrace2/babeltrace.h>
+
+#include "lib/object.h"
#include "common/macros.h"
struct bt_value {
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <babeltrace2/logging.h>
+#include <babeltrace2/babeltrace.h>
+
#include "common/macros.h"
#include "common/assert.h"
#endif
#include <stdlib.h>
-#include <babeltrace2/graph/self-component.h>
-#include <babeltrace2/graph/component-const.h>
-#include <babeltrace2/graph/component-class-const.h>
+#include <babeltrace2/babeltrace.h>
#include "logging/log.h"
#define _BT_COMP_LOG_COMP_PREFIX "[%s] "
#include <babeltrace2/ctf-writer/stream-class.h>
#include <babeltrace2/ctf-writer/trace.h>
#include <babeltrace2/ctf/events.h>
-#include <babeltrace2/value.h>
+#include <babeltrace2/babeltrace.h>
#include <glib.h>
#include <unistd.h>
#include "compat/stdlib.h"