Created
July 24, 2016 02:26
-
-
Save codebrainz/0278ae5fb07e9a55d596b5d96d21e355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GEANY_DEFINE_PLUGIN(name, \ | |
description, \ | |
version, \ | |
author, \ | |
api, \ | |
init_func, \ | |
cleanup_func, \ | |
config_func, \ | |
help_func) \ | |
G_MODULE_EXPORT void geany_load_module (GeanyPlugin *plugin) \ | |
{ \ | |
plugin->info->name = name; \ | |
plugin->info->description = _ (description); \ | |
plugin->info->version = version; \ | |
plugin->info->author = author; \ | |
plugin->funcs->init = init_func; \ | |
plugin->funcs->cleanup = cleanup_func; \ | |
plugin->funcs->configure = config_func; \ | |
plugin->funcs->help = help_func; \ | |
GEANY_PLUGIN_REGSTER (plugin, api); \ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment