projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor the plugin registration and loading machinery
[babeltrace.git]
/
include
/
babeltrace
/
plugin
/
plugin-internal.h
diff --git
a/include/babeltrace/plugin/plugin-internal.h
b/include/babeltrace/plugin/plugin-internal.h
index 0509be4485dd32d844459c4f3e861a3cff9f3666..ac0217207bcfca61f068df44cc083d43f151afbc 100644
(file)
--- a/
include/babeltrace/plugin/plugin-internal.h
+++ b/
include/babeltrace/plugin/plugin-internal.h
@@
-37,14
+37,9
@@
struct bt_plugin_shared_lib_handle {
struct bt_object base;
GString *path;
GModule *module;
struct bt_object base;
GString *path;
GModule *module;
- bool init_called;
- /* The members below belong to the shared library */
- const char *name;
- const char *author;
- const char *license;
- const char *description;
- bt_plugin_init_func init;
+ /* True if initialization function was called */
+ bool init_called;
bt_plugin_exit_func exit;
};
bt_plugin_exit_func exit;
};
@@
-57,6
+52,14
@@
struct bt_plugin {
/* Array of pointers to bt_component_class (owned by this) */
GPtrArray *comp_classes;
/* Array of pointers to bt_component_class (owned by this) */
GPtrArray *comp_classes;
+
+ /* Pointers to plugin's memory: do NOT free */
+ const struct __bt_plugin_descriptor *descriptor;
+ const char *name;
+ const char *author;
+ const char *license;
+ const char *description;
+ bt_plugin_init_func init;
};
#endif /* BABELTRACE_PLUGIN_PLUGIN_INTERNAL_H */
};
#endif /* BABELTRACE_PLUGIN_PLUGIN_INTERNAL_H */
This page took
0.024392 seconds
and
4
git commands to generate.