Support {ob} and {cb} wildcards for snippets too (fixes #2937008).
[geany-mirror.git] / src / pluginprivate.h
blobd79ef4b5b755a2a148977183a671e2932d014599
1 /*
2 * pluginprivate.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2009-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
5 * Copyright 2009-2010 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.
22 * $Id$
26 #ifndef PLUGINPRIVATE_H
27 #define PLUGINPRIVATE_H
29 #include "plugindata.h"
30 #include "ui_utils.h" /* GeanyAutoSeparator */
31 #include "keybindings.h" /* GeanyKeyGroup */
34 typedef struct SignalConnection
36 GObject *object;
37 gulong handler_id;
39 SignalConnection;
42 typedef struct GeanyPluginPrivate
44 GModule *module;
45 gchar *filename; /* plugin filename (/path/libname.so) */
46 PluginInfo info; /* plugin name, description, etc */
47 GeanyPlugin public; /* fields the plugin can read */
49 void (*init) (GeanyData *data); /* Called when the plugin is enabled */
50 GtkWidget* (*configure) (GtkDialog *dialog); /* plugins configure dialog, optional */
51 void (*configure_single) (GtkWidget *parent); /* plugin configure dialog, optional */
52 void (*help) (void); /* Called when the plugin should show some help, optional */
53 void (*cleanup) (void); /* Called when the plugin is disabled or when Geany exits */
55 /* extra stuff */
56 PluginFields fields;
57 GeanyKeyGroup *key_group;
58 GeanyAutoSeparator toolbar_separator;
59 GArray *signal_ids; /* SignalConnection's to disconnect when unloading */
61 GeanyPluginPrivate;
63 typedef GeanyPluginPrivate Plugin; /* shorter alias */
66 #endif /* PLUGINPRIVATE_H */