1 /*
2     en50221 encoder An implementation for libdvb
3     an implementation for the en50221 session layer
4 
5     Copyright (C) 2004, 2005 Manu Abraham <abraham.manu@gmail.com>
6     Copyright (C) 2005 Julian Scheel (julian at jusst dot de)
7     Copyright (C) 2006 Andrew de Quincey (adq_dvb@lidskialf.net)
8 
9     This library is free software; you can redistribute it and/or modify
10     it under the terms of the GNU Lesser General Public License as
11     published by the Free Software Foundation; either version 2.1 of
12     the License, or (at your option) any later version.
13 
14     This program is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17     GNU Lesser General Public License for more details.
18 
19     You should have received a copy of the GNU Lesser General Public
20     License along with this library; if not, write to the Free Software
21     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22 */
23 
24 #ifndef EN50221_ERRNO
25 #define EN50221_ERRNO 1
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #define EN50221ERR_CAREAD -1	/* error during read from CA device. */
32 #define EN50221ERR_CAWRITE -2	/* error during write to CA device. */
33 #define EN50221ERR_TIMEOUT -3	/* timeout occured waiting for a response from a device. */
34 #define EN50221ERR_BADSLOTID -4	/* bad slot ID supplied by user - the offending slot_id will not be set. */
35 #define EN50221ERR_BADCONNECTIONID -5	/* bad connection ID supplied by user. */
36 #define EN50221ERR_BADSTATE -6	/* slot/connection in the wrong state. */
37 #define EN50221ERR_BADCAMDATA -7	/* CAM supplied an invalid request. */
38 #define EN50221ERR_OUTOFMEMORY -8	/* memory allocation failed. */
39 #define EN50221ERR_ASNENCODE -9	/* ASN.1 encode failure - indicates library bug. */
40 #define EN50221ERR_OUTOFCONNECTIONS -10	/* no more connections available. */
41 #define EN50221ERR_OUTOFSLOTS -11	/* no more slots available - the offending slot_id will not be set. */
42 #define EN50221ERR_IOVLIMIT -12	/* Too many struct iovecs were used. */
43 #define EN50221ERR_BADSESSIONNUMBER -13	/* Bad session number suppplied by user. */
44 #define EN50221ERR_OUTOFSESSIONS -14	/* no more sessions available. */
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 #endif
50