logging: strip down and clean `log.h` and `log.c`
[babeltrace.git] / src / python-plugin-provider / python-plugin-provider.c
index 78026d6a1fd87e6ddb6883c0ff61fae4eecc964b..17305dd5ef7ab859ea1affa1837144f5c196cfc1 100644 (file)
@@ -24,7 +24,6 @@
 #include <signal.h>
 #include <Python.h>
 #include <glib.h>
-#include <gmodule.h>
 
 #define PYTHON_PLUGIN_FILE_PREFIX      "bt_plugin_"
 #define PYTHON_PLUGIN_FILE_PREFIX_LEN  (sizeof(PYTHON_PLUGIN_FILE_PREFIX) - 1)
@@ -85,7 +84,7 @@ void log_python_traceback(int log_level)
                        goto end;
                }
 
-               BT_LOG_WRITE(log_level, BT_LOG_TAG,
+               BT_LOG_WRITE_PRINTF(log_level, BT_LOG_TAG,
                        "Exception occurred: Python traceback:\n%s", exc->str);
        }
 
@@ -571,7 +570,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                        bt_plugin_get_name(*plugin_out),
                                        comp_class,
                                        bt_component_class_get_name(comp_class),
-                                       bt_component_class_type_string(
+                                       bt_common_component_class_type_string(
                                                bt_component_class_get_type(comp_class)));
                                goto error;
                        }
@@ -596,7 +595,7 @@ end:
        return status;
 }
 
-G_MODULE_EXPORT
+BT_EXPORT
 int bt_plugin_python_create_all_from_file(const char *path,
                bool fail_on_load_error, struct bt_plugin_set **plugin_set_out)
 {
This page took 0.023607 seconds and 4 git commands to generate.