X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fplugin%2Fplugin-dev.h;fp=include%2Fbabeltrace%2Fplugin%2Fplugin-dev.h;h=5b941a3bbe7dc2ab9c308bafffdfb8001b3f0d7f;hb=4cdfc5e86b64137d96c31495cbdea99801714c2b;hp=1ddbf9d6fffbafa1ccf7d00e779509322fa96c9f;hpb=a21d1cb8acfbed4d36ab6e74eefe64305d7587ef;p=babeltrace.git diff --git a/include/babeltrace/plugin/plugin-dev.h b/include/babeltrace/plugin/plugin-dev.h index 1ddbf9d6..5b941a3b 100644 --- a/include/babeltrace/plugin/plugin-dev.h +++ b/include/babeltrace/plugin/plugin-dev.h @@ -32,13 +32,13 @@ /* For enum bt_plugin_status */ #include -/* For enum bt_component_class_type */ +/* For bt_component_class_type */ #include /* For component class method type definitions */ -#include -#include -#include +#include +#include +#include /* * _BT_HIDDEN: set the hidden attribute for internal functions @@ -63,15 +63,15 @@ extern "C" { #define __BT_PLUGIN_VERSION_MINOR 0 /* Plugin initialization function type */ -enum bt_self_plugin_status { +typedef enum bt_self_plugin_status { BT_SELF_PLUGIN_STATUS_OK = 0, BT_SELF_PLUGIN_STATUS_NOMEM = -12, BT_SELF_PLUGIN_STATUS_ERROR = -1, -}; +} bt_self_plugin_status; typedef struct bt_self_plugin bt_self_plugin; -typedef enum bt_self_plugin_status (*bt_plugin_init_func)( +typedef bt_self_plugin_status (*bt_plugin_init_func)( bt_self_plugin *plugin); /* Plugin exit function type */ @@ -152,7 +152,7 @@ struct __bt_plugin_component_class_descriptor { const char *name; /* Component class type */ - enum bt_component_class_type type; + bt_component_class_type type; /* Mandatory methods (depends on component class type) */ union {