python-plugin-provider: Make it build
[babeltrace.git] / python-plugin-provider / python-plugin-provider.c
index f4747ef7e6972769abae94c6341ba4d4a3a1c8ae..631a971b1287eeade67e59d63be665c6098dfdb1 100644 (file)
@@ -25,7 +25,6 @@
  */
 
 #define BT_LOG_TAG "PLUGIN-PY"
-#include "logging.h"
 
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/compiler-internal.h>
@@ -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;
This page took 0.024385 seconds and 4 git commands to generate.