From c82c2aaf04f49af62f104fe71be0aa1dc0a5ffa9 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Tue, 27 Mar 2012 19:34:06 +0200 Subject: [PATCH] Rename document_functions to plugin_functions --- plugin-api.h | 12 ++++++------ plugin.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin-api.h b/plugin-api.h index 13cb330..c099d46 100644 --- a/plugin-api.h +++ b/plugin-api.h @@ -7,14 +7,14 @@ #include "document.h" #include "version.h" -typedef struct zathura_document_functions_s zathura_document_functions_t; +typedef struct zathura_plugin_functions_s zathura_plugin_functions_t; /** * Functions register function * * @param functions The functions struct */ -typedef void (*zathura_plugin_register_function_t)(zathura_document_functions_t* functions); +typedef void (*zathura_plugin_register_function_t)(zathura_plugin_functions_t* functions); /** * Sets the functions register function of the plugin @@ -40,14 +40,14 @@ void zathura_plugin_add_mimetype(zathura_plugin_t* plugin, const char* mime_type * @param register_functions function to register the plugin's document functions * @param mimetypes a char array of mime types supported by the plugin */ -#define PLUGIN_REGISTER(plugin_name, major, minor, rev, register_functions, mimetypes) \ +#define ZATHURA_PLUGIN_REGISTER(plugin_name, major, minor, rev, register_functions, mimetypes) \ unsigned int plugin_version_major() { return major; } \ unsigned int plugin_version_minor() { return minor; } \ unsigned int plugin_version_revision() { return rev; } \ unsigned int plugin_api_version() { return ZATHURA_API_VERSION; } \ unsigned int plugin_abi_version() { return ZATHURA_ABI_VERSION; } \ \ - void plugin_register(zathura_plugin_t* plugin) \ + void zathura_plugin_register(zathura_plugin_t* plugin) \ { \ if (plugin == NULL) { \ return; \ @@ -59,9 +59,9 @@ void zathura_plugin_add_mimetype(zathura_plugin_t* plugin, const char* mime_type } \ } \ -#define PLUGIN_MIMETYPES(...) __VA_ARGS__ +#define ZATHURA_PLUGIN_MIMETYPES(...) __VA_ARGS__ -struct zathura_document_functions_s +struct zathura_plugin_functions_s { /** * Opens a document diff --git a/plugin.h b/plugin.h index b3751c1..70bd3a4 100644 --- a/plugin.h +++ b/plugin.h @@ -30,7 +30,7 @@ struct zathura_plugin_s { girara_list_t* content_types; /**< List of supported content types */ zathura_plugin_register_function_t register_function; /**< Document open function */ - zathura_document_functions_t functions; /**< Document functions */ + zathura_plugin_functions_t functions; /**< Document functions */ void* handle; /**< DLL handle */ };