projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move initialization of components to init functions
[babeltrace.git]
/
plugins
/
sink.c
diff --git
a/plugins/sink.c
b/plugins/sink.c
index fcbc94857f215e57db05e6ff38a1e05f871f2e95..9647f2191bd3c5c28470d953f8e046b8473a4641 100644
(file)
--- a/
plugins/sink.c
+++ b/
plugins/sink.c
@@
-43,32
+43,24
@@
void bt_component_sink_destroy(struct bt_component *component)
g_free(sink);
}
g_free(sink);
}
-struct bt_component *bt_component_sink_create(const char *name,
- void *private_data, bt_component_destroy_cb destroy_func,
- bt_component_sink_handle_notification_cb notification_cb)
+BT_HIDDEN
+struct bt_component *bt_component_sink_create(const char *name)
{
struct bt_component_sink *sink = NULL;
enum bt_component_status ret;
{
struct bt_component_sink *sink = NULL;
enum bt_component_status ret;
- if (!notification_cb) {
- goto end;
- }
-
sink = g_new0(struct bt_component_sink, 1);
if (!sink) {
goto end;
}
sink = g_new0(struct bt_component_sink, 1);
if (!sink) {
goto end;
}
- ret = bt_component_init(&sink->parent, name, private_data,
- destroy_func, BT_COMPONENT_TYPE_SINK,
- bt_component_sink_destroy);
+ ret = bt_component_init(&sink->parent, name, BT_COMPONENT_TYPE_SINK,
+ bt_component_sink_destroy);
if (ret != BT_COMPONENT_STATUS_OK) {
g_free(sink);
sink = NULL;
goto end;
}
if (ret != BT_COMPONENT_STATUS_OK) {
g_free(sink);
sink = NULL;
goto end;
}
-
- sink->handle_notification = notification_cb;
end:
return sink ? &sink->parent : NULL;
}
end:
return sink ? &sink->parent : NULL;
}
This page took
0.024605 seconds
and
4
git commands to generate.