X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fcomponent.h;h=c1ad622e6f7f5821b8d6f7767f56a5e282cad3c5;hb=fec2a9f220bdae0ce64716538c111348302f2696;hp=5dc0e3903ac5186f25590b63dadc9a04ad66165d;hpb=f3bc20108cb89fa01f746a9f17ef22619d95920b;p=babeltrace.git diff --git a/include/babeltrace/plugin/component.h b/include/babeltrace/plugin/component.h index 5dc0e390..c1ad622e 100644 --- a/include/babeltrace/plugin/component.h +++ b/include/babeltrace/plugin/component.h @@ -39,23 +39,25 @@ extern "C" { * Status code. Errors are always negative. */ enum bt_component_status { - /** Memory allocation failure. */ - BT_COMPONENT_STATUS_NOMEM = -4, - - /** Invalid arguments. */ - BT_COMPONENT_STATUS_INVAL = -3, - - /** Unsupported component feature. */ - BT_COMPONENT_STATUS_UNSUPPORTED = -2, - - /** General error. */ - BT_COMPONENT_STATUS_ERROR = -1, - /** No error, okay. */ BT_COMPONENT_STATUS_OK = 0, + /** No more work to be done by this component. **/ + BT_COMPONENT_STATUS_END = 1, + /** + * Component can't process a notification at this time + * (e.g. would block), try again later. + */ + BT_COMPONENT_STATUS_AGAIN = 2, + /** General error. */ + BT_COMPONENT_STATUS_ERROR = -1, + /** Unsupported component feature. */ + BT_COMPONENT_STATUS_UNSUPPORTED = -2, + /** Invalid arguments. */ + BT_COMPONENT_STATUS_INVALID = -3, + /** Memory allocation failure. */ + BT_COMPONENT_STATUS_NOMEM = -4, }; - struct bt_component; struct bt_value; @@ -98,16 +100,6 @@ extern enum bt_component_status bt_component_set_name( extern struct bt_component_class *bt_component_get_class( struct bt_component *component); -/** - * Set component instance's error stream. - * - * @param component Component instance - * @param error_stream Error stream - * @returns One of #bt_component_status values - */ -extern enum bt_component_status bt_component_set_error_stream( - struct bt_component *component, FILE *error_stream); - #ifdef __cplusplus } #endif