/usr/include/libspectre/spectre-status.h is in libspectre-dev 0.2.6-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /* This file is part of Libspectre.
*
* Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
* Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Libspectre is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* Libspectre is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef SPECTRE_STATUS_H
#define SPECTRE_STATUS_H
#include <libspectre/spectre-macros.h>
SPECTRE_BEGIN_DECLS
/*! Defines the error status of a Spectre object */
typedef enum _SpectreStatus {
SPECTRE_STATUS_SUCCESS /*! No error */ = 0,
SPECTRE_STATUS_NO_MEMORY /*! There has been a problem
allocating memory */,
SPECTRE_STATUS_LOAD_ERROR /*! There has been a problem
loading the postcript file */,
SPECTRE_STATUS_DOCUMENT_NOT_LOADED /*! A function that needs the
document to be loaded has been
called and the document has not
been loaded or there was an
error when loading it */,
SPECTRE_STATUS_INVALID_PAGE /*! The request page number
is not in the document page
range */,
SPECTRE_STATUS_RENDER_ERROR /*! There has been a problem
rendering the page */,
SPECTRE_STATUS_EXPORTER_ERROR /*! There has been a problem
exporting the document */,
SPECTRE_STATUS_SAVE_ERROR /*! There has been a problem
saving the document */
} SpectreStatus;
/*! Gets a textual description of the given status
@param status the status whose textual description will be returned
*/
const char *spectre_status_to_string (SpectreStatus status);
SPECTRE_END_DECLS
#endif /* SPECTRE_STATUS_H */
|