Plugin development API: use self enumeration and plugin types
[babeltrace.git] / include / babeltrace / plugin / plugin-dev.h
index 21771ca981a9f224252c5ee42d8894f02fe12aa1..1ddbf9d6fffbafa1ccf7d00e779509322fa96c9f 100644 (file)
@@ -63,14 +63,16 @@ extern "C" {
 #define __BT_PLUGIN_VERSION_MINOR      0
 
 /* Plugin initialization function type */
-enum bt_plugin_init_status {
-       BT_PLUGIN_INIT_STATUS_OK = 0,
-       BT_PLUGIN_INIT_STATUS_NOMEM = -12,
-       BT_PLUGIN_INIT_STATUS_ERROR = -1,
+enum bt_self_plugin_status {
+       BT_SELF_PLUGIN_STATUS_OK = 0,
+       BT_SELF_PLUGIN_STATUS_NOMEM = -12,
+       BT_SELF_PLUGIN_STATUS_ERROR = -1,
 };
 
-typedef enum bt_plugin_init_status (*bt_plugin_init_func)(
-               const bt_plugin *plugin);
+typedef struct bt_self_plugin bt_self_plugin;
+
+typedef enum bt_self_plugin_status (*bt_plugin_init_func)(
+               bt_self_plugin *plugin);
 
 /* Plugin exit function type */
 typedef void (*bt_plugin_exit_func)(void);
This page took 0.023256 seconds and 4 git commands to generate.