-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_H
/*
* Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
* 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>
extern "C" {
#endif
-typedef enum bt_self_component_status {
- BT_SELF_COMPONENT_STATUS_OK = 0,
- BT_SELF_COMPONENT_STATUS_END = 1,
- BT_SELF_COMPONENT_STATUS_AGAIN = 11,
- BT_SELF_COMPONENT_STATUS_ERROR = -1,
- BT_SELF_COMPONENT_STATUS_NOMEM = -12,
-} bt_self_component_status;
+typedef enum bt_self_component_add_port_status {
+ BT_SELF_COMPONENT_ADD_PORT_STATUS_OK = __BT_FUNC_STATUS_OK,
+ BT_SELF_COMPONENT_ADD_PORT_STATUS_ERROR = __BT_FUNC_STATUS_ERROR,
+ BT_SELF_COMPONENT_ADD_PORT_STATUS_MEMORY_ERROR = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_self_component_add_port_status;
static inline
const bt_component *bt_self_component_as_component(
}
#endif
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_H */