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]
/
include
/
babeltrace
/
plugin
/
sink-internal.h
diff --git
a/include/babeltrace/plugin/sink-internal.h
b/include/babeltrace/plugin/sink-internal.h
index b33333871ed5344c3b69597bd3528ed0b64c5341..f7b7bc4cbdfc0be76b4ae852e7f7a38d1fa85595 100644
(file)
--- a/
include/babeltrace/plugin/sink-internal.h
+++ b/
include/babeltrace/plugin/sink-internal.h
@@
-29,8
+29,14
@@
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/plugin/component-internal.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/plugin/component-internal.h>
+#include <babeltrace/plugin/component-class-internal.h>
#include <babeltrace/plugin/plugin-system.h>
#include <babeltrace/plugin/plugin-system.h>
+struct bt_component_sink_class {
+ struct bt_component_class parent;
+ bt_component_sink_init_cb init;
+};
+
struct bt_component_sink {
struct bt_component parent;
struct bt_component_sink {
struct bt_component parent;
@@
-41,10
+47,12
@@
struct bt_component_sink {
/**
* Allocate a sink component.
*
/**
* Allocate a sink component.
*
+ * @param class Component class
* @param name Component instance name (will be copied)
* @returns A sink component instance
*/
BT_HIDDEN
* @param name Component instance name (will be copied)
* @returns A sink component instance
*/
BT_HIDDEN
-extern struct bt_component *bt_component_sink_create(const char *name);
+extern struct bt_component *bt_component_sink_create(
+ struct bt_component_class *class, const char *name);
#endif /* BABELTRACE_PLUGIN_SINK_INTERNAL_H */
#endif /* BABELTRACE_PLUGIN_SINK_INTERNAL_H */
This page took
0.022942 seconds
and
4
git commands to generate.