X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fbabeltrace.h;h=92599faacdb8f95006bbf02c19bfd28213c48cc7;hb=6c373cc9;hp=3cf60879dd3fc6865fc2e8870fbda40700ecb85c;hpb=188edac1113dbbb29030681dbde2de0ada742499;p=babeltrace.git
diff --git a/include/babeltrace2/babeltrace.h b/include/babeltrace2/babeltrace.h
index 3cf60879..92599faa 100644
--- a/include/babeltrace2/babeltrace.h
+++ b/include/babeltrace2/babeltrace.h
@@ -1,10 +1,8 @@
-#ifndef BABELTRACE_BABELTRACE_H
-#define BABELTRACE_BABELTRACE_H
+#ifndef BABELTRACE2_BABELTRACE_H
+#define BABELTRACE2_BABELTRACE_H
/*
- * Babeltrace API
- *
- * Copyright 2010-2018 EfficiOS Inc.
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -25,10 +23,33 @@
* 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
+
+/* Internal: needed by some of the following included headers */
+#include
+
+/* Internal: needed by some of the following included headers */
+#ifdef __cplusplus
+# define __BT_UPCAST(_type, _p) static_cast<_type *>(static_cast(_p))
+# define __BT_UPCAST_CONST(_type, _p) static_cast(static_cast(_p))
+#else
+# define __BT_UPCAST(_type, _p) ((_type *) (_p))
+# define __BT_UPCAST_CONST(_type, _p) ((const _type *) (_p))
+#endif
+
/* Core API */
#include
#include
#include
+#include
+#include
#include
#include
#include
@@ -62,12 +83,7 @@
#include
#include
-/* Plugin and plugin development API */
-#include
-#include
-#include
-
-/* Graph, component, and message API */
+/* Component class API */
#include
#include
#include
@@ -76,13 +92,29 @@
#include
#include
#include
+#include
+#include
+#include
+
+/* Component API */
#include
#include
#include
#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+/* Message iterator API */
+#include
+#include
+#include
+
+/* Message API */
#include
#include
#include
@@ -90,7 +122,6 @@
#include
#include
#include
-#include
#include
#include
#include
@@ -102,23 +133,41 @@
#include
#include
#include
+
+/* Graph API */
+#include
+#include
+#include
+#include
+#include
#include
#include
#include
-#include
+
+/* Query executor API */
+#include
#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#endif /* BABELTRACE_BABELTRACE_H */
+/* Plugin API */
+#include
+#include
+
+/* Plugin development */
+#include
+
+/* Cancel private definitions */
+#undef __BT_FUNC_STATUS_AGAIN
+#undef __BT_FUNC_STATUS_END
+#undef __BT_FUNC_STATUS_ERROR
+#undef __BT_FUNC_STATUS_INTERRUPTED
+#undef __BT_FUNC_STATUS_UNKNOWN_OBJECT
+#undef __BT_FUNC_STATUS_MEMORY_ERROR
+#undef __BT_FUNC_STATUS_NOT_FOUND
+#undef __BT_FUNC_STATUS_OK
+#undef __BT_FUNC_STATUS_OVERFLOW_ERROR
+#undef __BT_IN_BABELTRACE_H
+#undef __BT_UPCAST
+#undef __BT_UPCAST_CONST
+
+#endif /* BABELTRACE2_BABELTRACE_H */