lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / types.h
index 3ebf5370d10f269efa4215631fc6a771db320219..a8a8bb481160c4a689a7c698c823192fc795a813 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_TYPES_H
-#define BABELTRACE_TYPES_H
+#ifndef BABELTRACE2_TYPES_H
+#define BABELTRACE2_TYPES_H
 
 /*
  * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 /* Internal use */
@@ -99,6 +103,8 @@ typedef struct bt_connection bt_connection;
 typedef struct bt_event bt_event;
 typedef struct bt_event_class bt_event_class;
 typedef struct bt_event_header_field bt_event_header_field;
+typedef struct bt_error bt_error;
+typedef struct bt_error_cause bt_error_cause;
 typedef struct bt_field bt_field;
 typedef struct bt_field_class bt_field_class;
 typedef struct bt_field_class_enumeration_mapping bt_field_class_enumeration_mapping;
@@ -124,6 +130,7 @@ typedef struct bt_port_output bt_port_output;
 typedef struct bt_port_output_message_iterator bt_port_output_message_iterator;
 typedef struct bt_query_executor bt_query_executor;
 typedef struct bt_self_component bt_self_component;
+typedef struct bt_self_component_class bt_self_component_class;
 typedef struct bt_self_component_class_filter bt_self_component_class_filter;
 typedef struct bt_self_component_class_sink bt_self_component_class_sink;
 typedef struct bt_self_component_class_source bt_self_component_class_source;
@@ -135,6 +142,7 @@ typedef struct bt_self_component_port_output bt_self_component_port_output;
 typedef struct bt_self_component_sink bt_self_component_sink;
 typedef struct bt_self_component_source bt_self_component_source;
 typedef struct bt_self_message_iterator bt_self_message_iterator;
+typedef struct bt_self_plugin bt_self_plugin;
 typedef struct bt_self_port bt_self_port;
 typedef struct bt_self_port_input bt_self_port_input;
 typedef struct bt_self_port_output bt_self_port_output;
@@ -153,4 +161,4 @@ typedef const struct bt_message **bt_message_array_const;
 }
 #endif
 
-#endif /* BABELTRACE_TYPES_H */
+#endif /* BABELTRACE2_TYPES_H */
This page took 0.024129 seconds and 4 git commands to generate.