diff --git a/zathura/plugin-api.h b/zathura/plugin-api.h index 4a61364..eb9c6c4 100644 --- a/zathura/plugin-api.h +++ b/zathura/plugin-api.h @@ -214,27 +214,6 @@ typedef struct zathura_plugin_definition_s { #define ZATHURA_PLUGIN_DEFINITION_SYMBOL \ JOIN(zathura_plugin, JOIN(ZATHURA_API_VERSION, ZATHURA_ABI_VERSION)) -/** - * Register a plugin. - * - * @param plugin_name the name of the plugin - * @param major the plugin's major version - * @param minor the plugin's minor version - * @param rev the plugin's revision - * @param register_functions function to register the plugin's document functions - * @param mimetypes a char array of mime types supported by the plugin - */ -#define ZATHURA_PLUGIN_REGISTER(plugin_name, major, minor, rev, register_functions, mimetypes) \ - static const char* zathura_plugin_mime_types[] = mimetypes; \ - \ - const zathura_plugin_definition_t ZATHURA_PLUGIN_DEFINITION_SYMBOL = { \ - .name = plugin_name, \ - .version = { major, minor, rev }, \ - .register_function = register_functions, \ - .mime_types_size = sizeof(zathura_plugin_mime_types) / sizeof(zathura_plugin_mime_types[0]), \ - .mime_types = zathura_plugin_mime_types \ - }; \ - /** * Register a plugin. *