Debian Codegraph @

geanygendoc/src/ggd-file-type-manager.h

raw
1 /*
2 *
3 * GeanyGenDoc, a Geany plugin to ease generation of source code documentation
4 * Copyright (C) 2010-2011 Colomban Wendling <[email protected]>
5 *
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 3 of the License, or
9 * (at your option) any later version.
10 *
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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #ifndef H_GGD_FILE_TYPE_MANAGER
22 #define H_GGD_FILE_TYPE_MANAGER
23
24 #include <glib.h>
25 #include <geanyplugin.h>
26
27 #include "ggd-file-type.h"
28 #include "ggd-utils.h"
29 #include "ggd-macros.h"
30
31 G_BEGIN_DECLS
32 GGD_BEGIN_PLUGIN_API
33
34
35 void ggd_file_type_manager_init (void);
36 void ggd_file_type_manager_uninit (void);
37 void ggd_file_type_manager_add_file_type (GgdFileType *filetype);
38 gchar *ggd_file_type_manager_get_conf_path (GeanyFiletypeID id,
39 GgdPerms perms_req,
40 GError **error);
41 GgdFileType *ggd_file_type_manager_load_file_type (GeanyFiletypeID id);
42 GgdFileType *ggd_file_type_manager_get_file_type (GeanyFiletypeID ft);
43 GgdDocType *ggd_file_type_manager_get_doc_type (GeanyFiletypeID ft,
44 const gchar *docname);
45
46
47 GGD_END_PLUGIN_API
48 G_END_DECLS
49
50 #endif /* guard */