1 /* libquvi
2  * Copyright (C) 2012-2013  Toni Gundogdu <legatvs@gmail.com>
3  *
4  * This file is part of libquvi <http://quvi.sourceforge.net/>.
5  *
6  * This library is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Affero General Public
8  * License as published by the Free Software Foundation, either
9  * version 3 of the License, or (at your option) any later version.
10  *
11  * This library 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
14  * GNU Affero General Public License for more details.
15  *
16  * You should have received a copy of the GNU Affero General
17  * Public License along with this library.  If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef qerror_h
22 #define qerror_h
23 
24 /** @file qerror.h */
25 
26 /** @enum QuviError */
27 typedef enum
28 {
29   QUVI_OK,
30   QUVI_ERROR_CALLBACK_ABORTED, /**< Aborted by callback */
31   QUVI_ERROR_NO_SUBTITLE_EXPORT_SCRIPTS,
32   QUVI_ERROR_NO_SUBTITLE_SCRIPTS,
33   QUVI_ERROR_NO_PLAYLIST_SCRIPTS,
34   QUVI_ERROR_NO_MEDIA_SCRIPTS,
35   QUVI_ERROR_NO_SCAN_SCRIPTS,
36   QUVI_ERROR_NO_UTIL_SCRIPTS,
37   QUVI_ERROR_KEYWORD_CROAK,
38   QUVI_ERROR_INVALID_ARG,
39   QUVI_ERROR_GCRYPT_INIT,
40   QUVI_ERROR_PROXY_INIT,
41   QUVI_ERROR_CURL_INIT,
42   QUVI_ERROR_LUA_INIT,
43   QUVI_ERROR_NO_SUPPORT= 0x40,
44   QUVI_ERROR_CALLBACK,
45   /**< Error occurred in callback, this could be either a network error
46    * (network callback function returned an error) or a status callback
47    * function returned an error. */
48   QUVI_ERROR_SCRIPT
49 } QuviError;
50 
51 #endif /* qerror_h */
52 
53 /* vim: set ts=2 sw=2 tw=72 expandtab: */
54