-#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 */
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;
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;
}
#endif
-#endif /* BABELTRACE_TYPES_H */
+#endif /* BABELTRACE2_TYPES_H */