X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component.h;h=c11d8e456e8230646125e05898c2af05ded0bc90;hb=70f1d471fd81b740a1db6ab061951c9bfc6622b8;hp=a1bc8b49f0e38ffb9742a81293dfd6c974b4811a;hpb=0554db579fb963dec8d7fea3ec40ca7defa5e690;p=deliverable%2Fbabeltrace.git diff --git a/include/babeltrace/graph/self-component.h b/include/babeltrace/graph/self-component.h index a1bc8b49f..c11d8e456 100644 --- a/include/babeltrace/graph/self-component.h +++ b/include/babeltrace/graph/self-component.h @@ -23,34 +23,34 @@ * SOFTWARE. */ +/* For bt_component, bt_self_component */ +#include + #ifdef __cplusplus extern "C" { #endif -struct bt_component; -struct bt_self_component; - -enum bt_self_component_status { +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; static inline -const struct bt_component *bt_self_component_as_component( - struct bt_self_component *self_component) +const bt_component *bt_self_component_as_component( + bt_self_component *self_component) { return (const void *) self_component; } extern void *bt_self_component_get_data( - const struct bt_self_component *private_component); + const bt_self_component *private_component); extern void bt_self_component_set_data( - struct bt_self_component *private_component, void *data); + bt_self_component *private_component, void *data); #ifdef __cplusplus }