1 /*******************************
2 * file: netapi_err.h
3 * purpose: netapi error codes
4 **************************************************************
5 * FILE: netapi.h
6 *
7 * DESCRIPTION: netapi Error Definitions for user space transport
8 * library
9 *
10 * REVISION HISTORY: rev 0.0.1
11 *
12 * Copyright (c) Texas Instruments Incorporated 2010-2011
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 *
18 * Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 *
21 * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the
24 * distribution.
25 *
26 * Neither the name of Texas Instruments Incorporated nor the names of
27 * its contributors may be used to endorse or promote products derived
28 * from this software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 ******************************/
44 #ifndef __NETAPI_ERR__
45 #define __NETAPI_ERR__
46 /**
47 * @defgroup NETAPI_RetValue NETAPI Return Codes
48 */
49 /** @ingroup NETAPI_RetValue */
51 /**
52 * @def NETAPI_ERR_OK
53 * No error
54 */
55 #define NETAPI_ERR_OK 0
56 /**
57 * @def NETAPI_ERR_NOMEM
58 * out of memory error
59 */
60 #define NETAPI_ERR_NOMEM -1
61 /**
62 * @def NETAPI_ERR_BAD_INPUT
63 * arguments or configuraiton is invalid
64 */
65 #define NETAPI_ERR_BAD_INPUT -2
66 /**
67 * @def NETAPI_ERR_QLLD
68 * QUEUE MANAGER Reports an error
69 */
70 #define NETAPI_ERR_QLLD -3
71 /**
72 * @def NETAPI_ERR_NOTFOUND
73 * the resource cannot be located
74 */
75 #define NETAPI_ERR_NOTFOUND -4
76 /**
77 * @def NETAPI_ERR_BUSY
78 * Temporarily out of resources or resource leak
79 */
80 #define NETAPI_ERR_BUSY -5
81 /**
82 * @def NETAPI_ERR_NWAL_ERR0
83 * NWAL subsytem reports error
84 */
85 #define NETAPI_ERR_NWAL_ERR0 -6
86 /**
87 * @def NETAPI_ERR_ALREADY_CANCELLED
88 * timer has already been cancelled
89 */
90 #define NETAPI_ERR_ALREADY_CANCELLED -100
91 /**
92 * @def NETAPI_ERR_NWAL_TX_ERR
93 * error trying to send to NWAL.
94 */
95 #define NETAPI_ERR_NWAL_TX_ERR -65536
96 #endif