enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
if (!component || !destroy) {
- ret = BT_COMPONENT_STATUS_INVAL;
+ ret = BT_COMPONENT_STATUS_INVALID;
goto end;
}
}
bt_object_init(component, bt_component_destroy);
- component->class = bt_get(component_class);
component->name = g_string_new(name);
if (!component->name) {
BT_PUT(component);
enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
if (!component || !name || name[0] == '\0') {
- ret = BT_COMPONENT_STATUS_INVAL;
+ ret = BT_COMPONENT_STATUS_INVALID;
goto end;
}
enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
if (!component) {
- ret = BT_COMPONENT_STATUS_INVAL;
+ ret = BT_COMPONENT_STATUS_INVALID;
goto end;
}