Skip to content

Instantly share code, notes, and snippets.

@codebrainz
Created July 24, 2016 02:26
Show Gist options
  • Save codebrainz/0278ae5fb07e9a55d596b5d96d21e355 to your computer and use it in GitHub Desktop.
Save codebrainz/0278ae5fb07e9a55d596b5d96d21e355 to your computer and use it in GitHub Desktop.
#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