summaryrefslogtreecommitdiff log msg author committer range
path: root/include/nspdf/errors.h
blob: 6591dbbf85fb6cf7f0e0041770defbcfc3be0423 (plain)
 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 /* * Copyright 2018 Vincent Sanders * * This file is part of libnspdf. * * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php */ /** * \file * NetSurf PDF library return codes */ #ifndef NSPDF_ERRORS_H_ #define NSPDF_ERRORS_H_ typedef enum { NSPDFERROR_OK, /**< no error */ NSPDFERROR_NOMEM, /**< memory allocation error */ NSPDFERROR_SYNTAX, /**< syntax error in parse */ NSPDFERROR_SIZE, /**< not enough input data */ NSPDFERROR_RANGE, /**< value outside type range */ NSPDFERROR_TYPE, /**< wrong type error */ NSPDFERROR_NOTFOUND, /**< key not found */ NSPDFERROR_FORMAT, /**< objects do not cornform to expected format */ NSPDFERROR_INCOMPLETE, /**< operation was not completed */ } nspdferror; #endif