00001 /* This file is part of Libspectre. 00002 * 00003 * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org> 00004 * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> 00005 * 00006 * Libspectre is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2, or (at your option) 00009 * any later version. 00010 * 00011 * Libspectre is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef SPECTRE_STATUS_H 00022 #define SPECTRE_STATUS_H 00023 00024 #include <libspectre/spectre-macros.h> 00025 00026 SPECTRE_BEGIN_DECLS 00027 00029 typedef enum _SpectreStatus { 00030 SPECTRE_STATUS_SUCCESS = 0, 00031 SPECTRE_STATUS_NO_MEMORY , 00033 SPECTRE_STATUS_LOAD_ERROR , 00035 SPECTRE_STATUS_DOCUMENT_NOT_LOADED , 00040 SPECTRE_STATUS_INVALID_PAGE , 00043 SPECTRE_STATUS_RENDER_ERROR , 00045 SPECTRE_STATUS_EXPORTER_ERROR , 00047 SPECTRE_STATUS_SAVE_ERROR 00049 } SpectreStatus; 00050 00054 const char *spectre_status_to_string (SpectreStatus status); 00055 00056 SPECTRE_END_DECLS 00057 00058 #endif /* SPECTRE_STATUS_H */