projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce bt_plugin and bt_component_class
[babeltrace.git]
/
plugins
/
source.c
diff --git
a/plugins/source.c
b/plugins/source.c
index 094cab24cb2c1ac39de06b3635ffd263190f9bcf..38fc3110801662974223dba48a4609e18e621490 100644
(file)
--- a/
plugins/source.c
+++ b/
plugins/source.c
@@
-46,7
+46,8
@@
void bt_component_source_destroy(struct bt_component *component)
}
BT_HIDDEN
}
BT_HIDDEN
-struct bt_component *bt_component_source_create(const char *name)
+struct bt_component *bt_component_source_create(
+ struct bt_component_class *class, const char *name)
{
struct bt_component_source *source = NULL;
enum bt_component_status ret;
{
struct bt_component_source *source = NULL;
enum bt_component_status ret;
@@
-55,8
+56,8
@@
struct bt_component *bt_component_source_create(const char *name)
goto end;
}
goto end;
}
- ret = bt_component_init(&source->parent, name,
-
BT_COMPONENT_TYPE_SOURCE,
bt_component_source_destroy);
+ ret = bt_component_init(&source->parent,
class,
name,
+ bt_component_source_destroy);
if (ret != BT_COMPONENT_STATUS_OK) {
g_free(source);
source = NULL;
if (ret != BT_COMPONENT_STATUS_OK) {
g_free(source);
source = NULL;
This page took
0.024928 seconds
and
4
git commands to generate.