X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=python-plugin-provider%2Fpython-plugin-provider.c;h=631a971b1287eeade67e59d63be665c6098dfdb1;hb=88b3fc9c233989c30ca8e3582b4923713ec51e81;hp=f4747ef7e6972769abae94c6341ba4d4a3a1c8ae;hpb=05c900e51aad33aff0f97191cd34bf8679e4ad3b;p=babeltrace.git diff --git a/python-plugin-provider/python-plugin-provider.c b/python-plugin-provider/python-plugin-provider.c index f4747ef7..631a971b 100644 --- a/python-plugin-provider/python-plugin-provider.c +++ b/python-plugin-provider/python-plugin-provider.c @@ -25,7 +25,6 @@ */ #define BT_LOG_TAG "PLUGIN-PY" -#include "logging.h" #include #include @@ -157,9 +156,9 @@ void fini_python(void) { } static -const bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info) +bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info) { - const bt_plugin *plugin = NULL; + bt_plugin *plugin = NULL; PyObject *py_name = NULL; PyObject *py_author = NULL; PyObject *py_description = NULL; @@ -367,8 +366,6 @@ const bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info) } } - bt_plugin_freeze(plugin); - goto end; error: @@ -390,7 +387,7 @@ G_MODULE_EXPORT bt_plugin_set *bt_plugin_python_create_all_from_file(const char *path) { bt_plugin_set *plugin_set = NULL; - const bt_plugin *plugin = NULL; + bt_plugin *plugin = NULL; PyObject *py_plugin_info = NULL; gchar *basename = NULL; size_t path_len;