X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fplugin-system%2Fcomponent.c;h=16bc28680cd9df654669d2467c7f91bab5e90d6f;hb=0cc9e945b74225cd449d20f0c9516fb152d220b1;hp=483788acd6be9381f7fa3cb156d09ddd105f118f;hpb=4b70dd83c27c589139178db25c9ddb70f24e6192;p=babeltrace.git diff --git a/lib/plugin-system/component.c b/lib/plugin-system/component.c index 483788ac..16bc2868 100644 --- a/lib/plugin-system/component.c +++ b/lib/plugin-system/component.c @@ -84,7 +84,7 @@ enum bt_component_status bt_component_init(struct bt_component *component, enum bt_component_status ret = BT_COMPONENT_STATUS_OK; if (!component || !destroy) { - ret = BT_COMPONENT_STATUS_INVAL; + ret = BT_COMPONENT_STATUS_INVALID; goto end; } @@ -124,7 +124,6 @@ struct bt_component *bt_component_create( } 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); @@ -160,7 +159,7 @@ enum bt_component_status bt_component_set_name(struct bt_component *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; } @@ -187,7 +186,7 @@ bt_component_set_private_data(struct bt_component *component, enum bt_component_status ret = BT_COMPONENT_STATUS_OK; if (!component) { - ret = BT_COMPONENT_STATUS_INVAL; + ret = BT_COMPONENT_STATUS_INVALID; goto end; }