Merge pull request #3812 from Biswa96/meson-add-geany-icon
[geany-mirror.git] / src / app.h
bloba4af6c3d71881222a31ab75ad9057f793c4fc504
1 /*
2 * app.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 /**
22 * @file app.h
23 * Contains the GeanyApp.
26 #ifndef GEANY_APP_H
27 #define GEANY_APP_H 1
29 #include "tm_workspace.h"
30 #include "project.h"
32 #include <glib.h>
34 G_BEGIN_DECLS
36 /** Important application fields. */
37 typedef struct GeanyApp
39 gboolean debug_mode; /**< @c TRUE if debug messages should be printed. */
40 /** User configuration directory, usually @c ~/.config/geany.
41 * This is a full path read by @ref utils_get_real_path().
42 * @note Plugin configuration files should be saved as:
43 * @code g_build_path(G_DIR_SEPARATOR_S, geany->app->configdir, "plugins", "pluginname",
44 * "file.conf", NULL); @endcode */
45 gchar *configdir;
46 gchar *datadir;
47 gchar *docdir;
48 const TMWorkspace *tm_workspace; /**< TagManager workspace/session tags. */
49 struct GeanyProject *project; /**< Currently active project or @c NULL if none is open. */
51 GeanyApp;
54 #ifdef GEANY_PRIVATE
56 extern GeanyApp *app;
58 #endif /* GEANY_PRIVATE */
60 G_END_DECLS
62 #endif /* GEANY_APP_H */