Added .gitignore
[gfxprim.git] / core / GP_RetCode.h
blob9241a260f9eb7a61f978116ae26bc5b691bd5084
1 /*****************************************************************************
2 * This file is part of gfxprim library. *
3 * *
4 * Gfxprim is free software; you can redistribute it and/or *
5 * modify it under the terms of the GNU Lesser General Public *
6 * License as published by the Free Software Foundation; either *
7 * version 2.1 of the License, or (at your option) any later version. *
8 * *
9 * Gfxprim is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12 * Lesser General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU Lesser General Public *
15 * License along with gfxprim; if not, write to the Free Software *
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
17 * Boston, MA 02110-1301 USA *
18 * *
19 * Copyright (C) 2009-2010 Jiri "BlueBear" Dluhos *
20 * <jiri.bluebear.dluhos@gmail.com> *
21 * *
22 * Copyright (C) 2009-2010 Cyril Hrubis <metan@ucw.cz> *
23 * *
24 *****************************************************************************/
26 #ifndef GP_RETCODE_H
27 #define GP_RETCODE_H
29 typedef enum GP_RetCode {
30 GP_ESUCCESS,
31 GP_EINVAL,
32 GP_ENOIMPL,
33 GP_EUNPRECISE,
34 GP_ENULLPTR, /* some argument was unexpectedly NULL */
35 GP_ENOBACKEND, /* no backend available */
36 GP_EBACKENDLOST, /* lost connection to the backend */
37 GP_EBADCONTEXT, /* context contains invalid data */
38 GP_EBADFILE, /* error in file, or bad file format */
39 GP_ENOENT, /* no such file or another object */
40 GP_ENOMEM, /* not enough memory */
41 GP_EMAX,
42 } GP_RetCode;
44 const char *GP_RetCodeName(GP_RetCode code);
46 #endif /* GP_RETCODE_H */