X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fplugin-internal.h;h=ac0217207bcfca61f068df44cc083d43f151afbc;hb=6ba0b073d3cc5040234aad3ab820b7ca4022e3e9;hp=0509be4485dd32d844459c4f3e861a3cff9f3666;hpb=cbb9e0b1ec169269733bcd689294b1fd8be59a2c;p=babeltrace.git diff --git a/include/babeltrace/plugin/plugin-internal.h b/include/babeltrace/plugin/plugin-internal.h index 0509be44..ac021720 100644 --- 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; - 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; }; @@ -57,6 +52,14 @@ struct bt_plugin { /* 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 */