Prefix header guards with GEANY_ for consistency
[geany-mirror.git] / src / pluginprivate.h
blobf88bf1f190fdb98ef12ff8302b4a12201f07a818
1 /*
2 * pluginprivate.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
5 * Copyright 2009-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
24 #ifndef GEANY_PLUGINPRIVATE_H
25 #define GEANY_PLUGINPRIVATE_H
27 #include "plugindata.h"
28 #include "ui_utils.h" /* GeanyAutoSeparator */
29 #include "keybindings.h" /* GeanyKeyGroup */
32 typedef struct SignalConnection
34 GObject *object;
35 gulong handler_id;
37 SignalConnection;
40 typedef struct GeanyPluginPrivate
42 GModule *module;
43 gchar *filename; /* plugin filename (/path/libname.so) */
44 PluginInfo info; /* plugin name, description, etc */
45 GeanyPlugin public; /* fields the plugin can read */
47 void (*init) (GeanyData *data); /* Called when the plugin is enabled */
48 GtkWidget* (*configure) (GtkDialog *dialog); /* plugins configure dialog, optional */
49 void (*configure_single) (GtkWidget *parent); /* plugin configure dialog, optional */
50 void (*help) (void); /* Called when the plugin should show some help, optional */
51 void (*cleanup) (void); /* Called when the plugin is disabled or when Geany exits */
53 /* extra stuff */
54 PluginFields fields;
55 GeanyKeyGroup *key_group;
56 GeanyAutoSeparator toolbar_separator;
57 GArray *signal_ids; /* SignalConnection's to disconnect when unloading */
58 GList *sources; /* GSources to destroy when unloading */
60 GeanyPluginPrivate;
62 typedef GeanyPluginPrivate Plugin; /* shorter alias */
65 #endif /* GEANY_PLUGINPRIVATE_H */