delete project support
[geanyprj.git] / geanyprj.h
blobf7570ed6e5183926f79288ac9f4f1340722603fe
1 /*
2 * Copyright 2008 Yura Siamashka <yurand2@gmail.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef __GEANYPRJ_H__
20 #define __GEANYPRJ_H__
22 #define DEBUG
24 #ifdef DEBUG
25 #define debug printf
26 #else
27 #define debug
28 #endif
30 struct GeanyProject
32 gchar *path; ///< path to disk file
34 gchar *name;
35 gchar *description;
36 gchar *base_path;
37 gchar *run_cmd;
39 GHashTable *tags; ///< project tags
42 struct GeanyProject * geany_project_new(const gchar *path);
43 void geany_project_free(struct GeanyProject *prj);
44 void geany_project_create_tags(struct GeanyProject *prj);
46 void xproject_close();
49 // Helper functions
50 gchar * find_file_path(const gchar * dir, const gchar * filename);
51 gchar * normpath(const gchar * filename);
53 extern struct GeanyProject *g_current_project;
55 #endif