1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ 2 /* 3 * Copyright (C) 2002 CodeFactory AB 4 * Copyright (C) 2002 Mikael Hallendal <micke@imendio.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (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 GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public 17 * License along with this program; if not, write to the 18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 * Boston, MA 02111-1307, USA. 20 */ 21 22 #ifndef __DH_ERROR_H__ 23 #define __DH_ERROR_H__ 24 25 #include <glib.h> 26 27 G_BEGIN_DECLS 28 29 #define DH_ERROR dh_error_quark () 30 31 typedef enum { 32 DH_ERROR_FILE_NOT_FOUND, 33 DH_ERROR_MALFORMED_BOOK, 34 DH_ERROR_INVALID_BOOK_TYPE, 35 DH_ERROR_INTERNAL_ERROR 36 } DhError; 37 38 GQuark dh_error_quark (void) G_GNUC_CONST; 39 40 G_END_DECLS 41 42 #endif /* __DH_ERROR_H__ */ 43