mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:36:00 +01:00
Drop unused macro
This commit is contained in:
parent
85019b5312
commit
7e9e700744
1 changed files with 0 additions and 21 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue