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]
/
include
/
babeltrace
/
plugin
/
source-internal.h
diff --git
a/include/babeltrace/plugin/source-internal.h
b/include/babeltrace/plugin/source-internal.h
index 0388105309bec560497b53019315ea9e276d314c..1234339ac5da93c51d9256eaee9b41d670316a39 100644
(file)
--- a/
include/babeltrace/plugin/source-internal.h
+++ b/
include/babeltrace/plugin/source-internal.h
@@
-35,7
+35,16
@@
struct bt_component_source {
struct bt_component parent;
/* Component implementation callbacks */
struct bt_component parent;
/* Component implementation callbacks */
- bt_component_source_i
terator_init
_cb init_iterator;
+ bt_component_source_i
nit_iterator
_cb init_iterator;
};
};
+/**
+ * Allocate a source component.
+ *
+ * @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);
+
#endif /* BABELTRACE_PLUGIN_SOURCE_INTERNAL_H */
#endif /* BABELTRACE_PLUGIN_SOURCE_INTERNAL_H */
This page took
0.023845 seconds
and
4
git commands to generate.