gplate/gplate-errors.h
author Gary Kramlich <grim@reaperworld.com>
Sat Jul 03 23:24:33 2010 -0500 (22 months ago)
changeset 394 ad26d98e20e6
parent 220 d5876c6d72cc
permissions -rw-r--r--
Changed the license from gplv2 to gplv3
Updated copyrights to be 2007-2010 rather than 2007-2008 (since just about everything has been touched recently
Ignored the top level tests/ directory for now since that is slowly being replaced
grim@120
     1
/*
grim@394
     2
 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
grim@120
     3
 *
grim@394
     4
 * This program is free software: you can redistribute it and/or modify
grim@394
     5
 * it under the terms of the GNU General Public License as published by
grim@394
     6
 * the Free Software Foundation, either version 3 of the License, or
grim@394
     7
 * (at your option) any later version.
grim@120
     8
 *
grim@394
     9
 * This program is distributed in the hope that it will be useful,
grim@394
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
grim@394
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
grim@394
    12
 * GNU General Public License for more details.
grim@394
    13
 *
grim@394
    14
 * You should have received a copy of the GNU General Public License
grim@394
    15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
grim@120
    16
 */
grim@120
    17
#ifndef GPLATE_ERRORS_H
grim@120
    18
#define GPLATE_ERRORS_H
grim@120
    19
grim@120
    20
#include <glib.h>
grim@120
    21
grim@120
    22
#define GPLATE_DOMAIN	(gplate_errors_get_quark())
grim@120
    23
grim@120
    24
typedef enum {
grim@122
    25
	GPLATE_ERROR_TYPE_IS_NOT_DESCENDANT = 100,
grim@122
    26
	GPLATE_ERROR_TYPE_IS_ABSTRACT,
grim@122
    27
grim@220
    28
	GPLATE_ERROR_UTIL_FILE_DOES_NOT_EXIST = 200,
grim@122
    29
grim@194
    30
	GPLATE_ERROR_LIBRARY_FUNCTION_NAME_EXISTS = 300,
grim@126
    31
	GPLATE_ERROR_LIBRARY_FUNCTION_NAME_NOT_FOUND,
grim@128
    32
	GPLATE_ERROR_LIBRARY_FUNCTION_BOUND,
grim@128
    33
	GPLATE_ERROR_LIBRARY_FUNCTION_NOT_BOUND,
grim@128
    34
	GPLATE_ERROR_LIBRARY_FUNCTION_NOT_BOUND_TO_TAG,
grim@194
    35
	GPLATE_ERROR_LIBRARY_TAG_EXISTS = 350,
grim@169
    36
	GPLATE_ERROR_LIBRARY_TAG_NOT_FOUND,
grim@194
    37
	GPLATE_ERROR_LIBRARY_TAG_NO_PREFIX_HAVE_SUFFIX,
grim@194
    38
	GPLATE_ERROR_LIBRARY_TAG_HAVE_PREFIX_NO_SUFFIX,
grim@194
    39
	GPLATE_ERROR_LIBRARY_DEFAULT_TAG_REGISTERED = 360,
grim@120
    40
grim@120
    41
	GPLATE_ERROR_UNKNOWN = 1 << 31,
grim@120
    42
} GPlateErrors;
grim@120
    43
grim@120
    44
G_BEGIN_DECLS
grim@120
    45
grim@120
    46
GQuark gplate_errors_get_quark(void);
grim@120
    47
grim@120
    48
G_END_DECLS
grim@120
    49
grim@220
    50
#endif /* GPLATE_ERRORS_H */