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
/
source-internal.h
diff --git
a/include/babeltrace/plugin/source-internal.h
b/include/babeltrace/plugin/source-internal.h
index 1234339ac5da93c51d9256eaee9b41d670316a39..5c411fc1c83f04a68793559e1d4cba3407079566 100644
(file)
--- a/
include/babeltrace/plugin/source-internal.h
+++ b/
include/babeltrace/plugin/source-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_source_class {
+ struct bt_component_class parent;
+ bt_component_source_init_cb init;
+};
+
struct bt_component_source {
struct bt_component parent;
struct bt_component_source {
struct bt_component parent;
@@
-41,10
+47,12
@@
struct bt_component_source {
/**
* Allocate a source component.
*
/**
* Allocate a source component.
*
+ * @param class Component class
* @param name Component instance name (will be copied)
* @returns A source component instance
*/
BT_HIDDEN
* @param name Component instance name (will be copied)
* @returns A source component instance
*/
BT_HIDDEN
-extern struct bt_component *bt_component_source_create(const char *name);
+extern struct bt_component *bt_component_source_create(
+ struct bt_component_class *class, const char *name);
#endif /* BABELTRACE_PLUGIN_SOURCE_INTERNAL_H */
#endif /* BABELTRACE_PLUGIN_SOURCE_INTERNAL_H */
This page took
0.0249 seconds
and
4
git commands to generate.