Debian Codegraph @

geanygendoc/src/ggd-doc-type.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_DOC_TYPE
22 #define H_GGD_DOC_TYPE
23
24 #include <stdio.h>
25 #include <glib.h>
26
27 #include "ggd-doc-setting.h"
28 #include "ggd-macros.h"
29
30 G_BEGIN_DECLS
31 GGD_BEGIN_PLUGIN_API
32
33
34 typedef struct _GgdDocType GgdDocType;
35
36 struct _GgdDocType
37 {
38 gint ref_count;
39 gchar *name;
40 GList *settings;
41 };
42
43
44 GgdDocType *ggd_doc_type_new (const gchar *name);
45 GgdDocType *ggd_doc_type_ref (GgdDocType *doctype);
46 void ggd_doc_type_unref (GgdDocType *doctype);
47 void ggd_doc_type_dump (const GgdDocType *doctype,
48 FILE *stream);
49 GgdDocSetting *ggd_doc_type_get_setting (const GgdDocType *doctype,
50 const gchar *match);
51 GgdDocSetting *ggd_doc_type_resolve_setting (const GgdDocType *doctype,
52 const gchar *match,
53 gint *nth_child);
54
55
56 GGD_END_PLUGIN_API
57 G_END_DECLS
58
59 #endif /* guard */