/* * * GeanyGenDoc, a Geany plugin to ease generation of source code documentation * Copyright (C) 2009-2011 Colomban Wendling * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef H_GGD_PLUGIN #define H_GGD_PLUGIN #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include "ggd-macros.h" G_BEGIN_DECLS /* pretty funny hack, because Geany doesn't use a shared library for it's API, * then we need that global function table pointer, that Geany gives at plugin * loading time */ /* Note that this cannot be hidden since it is accessed by the Geany instance */ extern GeanyPlugin *geany_plugin; extern GeanyData *geany_data; /* Begin of the plugin's self API */ GGD_BEGIN_PLUGIN_API #define GGD_PLUGIN_ONAME geanygendoc #define GGD_PLUGIN_CNAME G_STRINGIFY (GGD_PLUGIN_ONAME) #define GGD_PLUGIN_NAME "GeanyGenDoc" #define GGD_PLUGIN_VERSION "0.2" /* Don't use Geany-Plugin's version */ /* global plugin options */ extern gchar *GGD_OPT_doctype[GEANY_MAX_BUILT_IN_FILETYPES]; extern gboolean GGD_OPT_save_to_refresh; extern gboolean GGD_OPT_indent; extern gchar *GGD_OPT_environ; GGD_END_PLUGIN_API G_END_DECLS #endif /* guard */