| 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_CONF_LOADER |
| 22 |
#define H_GGD_CONF_LOADER |
| 23 |
|
| 24 |
#include <glib.h> |
| 25 |
|
| 26 |
#include "ggd-file-type.h" |
| 27 |
#include "ggd-macros.h" |
| 28 |
|
| 29 |
G_BEGIN_DECLS |
| 30 |
GGD_BEGIN_PLUGIN_API |
| 31 |
|
| 32 |
|
| 33 |
/** |
| 34 |
* GgdConfError: |
| 35 |
* @GGD_FILE_TYPE_LOAD_ERROR_READ: A read failed |
| 36 |
* @GGD_FILE_TYPE_LOAD_ERROR_PARSE: Parsing of a part of the input failed |
| 37 |
* @GGD_FILE_TYPE_LOAD_ERROR_FAILED: Something failed |
| 38 |
* |
| 39 |
* Error codes of the %GGD_FILE_TYPE_LOAD_ERROR domain. |
| 40 |
*/ |
| 41 |
typedef enum _GgdConfError |
| 42 |
{ |
| 43 |
GGD_FILE_TYPE_LOAD_ERROR_READ, |
| 44 |
GGD_FILE_TYPE_LOAD_ERROR_PARSE, |
| 45 |
GGD_FILE_TYPE_LOAD_ERROR_FAILED |
| 46 |
} GgdConfError; |
| 47 |
|
| 48 |
/*< standard >*/ |
| 49 |
#define GGD_FILE_TYPE_LOAD_ERROR (ggd_file_type_load_error_quark ()) |
| 50 |
|
| 51 |
GQuark ggd_file_type_load_error_quark (void) G_GNUC_CONST; |
| 52 |
gboolean ggd_file_type_load (GgdFileType *filetype, |
| 53 |
const gchar *file, |
| 54 |
GError **error); |
| 55 |
|
| 56 |
|
| 57 |
GGD_END_PLUGIN_API |
| 58 |
G_END_DECLS |
| 59 |
|
| 60 |
#endif /* guard */ |