*/
#define BT_LOG_TAG "PLUGIN-PY"
-#include "logging.h"
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/compiler-internal.h>
}
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;
}
}
- bt_plugin_freeze(plugin);
-
goto end;
error:
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;