X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fself-component.h;h=898c0d9a03933026e77162e4b725e8b2c3c50c8a;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hp=fe4e4df551b38a6a8dac8671e99e1b66473c5110;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/graph/self-component.h b/include/babeltrace2/graph/self-component.h index fe4e4df5..898c0d9a 100644 --- a/include/babeltrace2/graph/self-component.h +++ b/include/babeltrace2/graph/self-component.h @@ -26,18 +26,20 @@ /* For bt_component, bt_self_component, __BT_UPCAST */ #include +/* For __BT_FUNC_STATUS_* */ +#define __BT_FUNC_STATUS_ENABLE +#include +#undef __BT_FUNC_STATUS_ENABLE + #ifdef __cplusplus 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_REFUSE_PORT_CONNECTION = 111, - 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( @@ -56,4 +58,6 @@ extern void bt_self_component_set_data( } #endif +#include + #endif /* BABELTRACE_GRAPH_SELF_COMPONENT_H */