2 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.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 3 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, see <http://www.gnu.org/licenses/>.
17 #ifndef GPLATE_ERRORS_H
18 #define GPLATE_ERRORS_H
22 #define GPLATE_DOMAIN (gplate_errors_get_quark())
25 GPLATE_ERROR_TYPE_IS_NOT_DESCENDANT = 100,
26 GPLATE_ERROR_TYPE_IS_ABSTRACT,
28 GPLATE_ERROR_UTIL_FILE_DOES_NOT_EXIST = 200,
30 GPLATE_ERROR_LIBRARY_FUNCTION_NAME_EXISTS = 300,
31 GPLATE_ERROR_LIBRARY_FUNCTION_NAME_NOT_FOUND,
32 GPLATE_ERROR_LIBRARY_FUNCTION_BOUND,
33 GPLATE_ERROR_LIBRARY_FUNCTION_NOT_BOUND,
34 GPLATE_ERROR_LIBRARY_FUNCTION_NOT_BOUND_TO_TAG,
35 GPLATE_ERROR_LIBRARY_TAG_EXISTS = 350,
36 GPLATE_ERROR_LIBRARY_TAG_NOT_FOUND,
37 GPLATE_ERROR_LIBRARY_TAG_NO_PREFIX_HAVE_SUFFIX,
38 GPLATE_ERROR_LIBRARY_TAG_HAVE_PREFIX_NO_SUFFIX,
39 GPLATE_ERROR_LIBRARY_DEFAULT_TAG_REGISTERED = 360,
41 GPLATE_ERROR_UNKNOWN = 1 << 31,
46 GQuark gplate_errors_get_quark(void);
50 #endif /* GPLATE_ERRORS_H */