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 38bf7f8901ba4d911bcd5668c38d154291558548..1234339ac5da93c51d9256eaee9b41d670316a39 100644
(file)
--- a/
include/babeltrace/plugin/source-internal.h
+++ b/
include/babeltrace/plugin/source-internal.h
@@
-2,7
+2,7
@@
#define BABELTRACE_PLUGIN_SOURCE_INTERNAL_H
/*
#define BABELTRACE_PLUGIN_SOURCE_INTERNAL_H
/*
- * BabelTrace - Source
Plug-in
internal
+ * BabelTrace - Source
Component
internal
*
* Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
*
* Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
@@
-28,22
+28,23
@@
*/
#include <babeltrace/babeltrace-internal.h>
*/
#include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/plugin/
plugin
-internal.h>
+#include <babeltrace/plugin/
component
-internal.h>
#include <babeltrace/plugin/plugin-system.h>
#include <babeltrace/plugin/plugin-system.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+struct bt_component_source {
+ struct bt_component parent;
-struct bt_plugin_source {
- struct bt_plugin parent;
-
- /* Plug-in implementation callbacks */
- bt_plugin_source_iterator_create_cb create_iterator;
+ /* Component implementation callbacks */
+ bt_component_source_init_iterator_cb init_iterator;
};
};
-#ifdef __cplusplus
-}
-#endif
+/**
+ * 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.026 seconds
and
4
git commands to generate.