index fc301d62960130b574b4893c2a23917f18a87b82..86c646cf5fb2543e030c4da3c45bb3f6ea5ae3ce 100755 (executable)
-/*******************************\r
- * file: netapi_err.h\r
- * purpose: netapi error codes\r
- **************************************************************\r
- * @file netapi.h\r
- * \r
- * @brief DESCRIPTION: netapi Error Definitions for user space transport\r
- * library\r
- * \r
- * REVISION HISTORY: rev 0.0.1 \r
- *\r
- * Copyright (c) Texas Instruments Incorporated 2010-2011\r
- * \r
- * Redistribution and use in source and binary forms, with or without \r
- * modification, are permitted provided that the following conditions \r
- * are met:\r
- *\r
- * Redistributions of source code must retain the above copyright \r
- * notice, this list of conditions and the following disclaimer.\r
- *\r
- * Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the \r
- * documentation and/or other materials provided with the \r
- * distribution.\r
- *\r
- * Neither the name of Texas Instruments Incorporated nor the names of\r
- * its contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \r
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \r
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \r
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \r
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-\r
- ******************************/\r
-\r
-#ifndef __NETAPI_ERR__\r
-#define __NETAPI_ERR__\r
-/**\r
- * @defgroup NETAPI_RetValue NETAPI Return Codes\r
- */\r
-/** @ingroup NETAPI_RetValue */\r
-\r
-/**\r
- * @def NETAPI_ERR_OK\r
- * No error \r
- */\r
-#define NETAPI_ERR_OK 0\r
-/**\r
- * @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_NOMEM\r
- * @brief out of memory error \r
- */\r
-#define NETAPI_ERR_NOMEM -1\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_BAD_INPUT\r
- * arguments or configuraiton is invalid\r
- */\r
-#define NETAPI_ERR_BAD_INPUT -2\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_QLLD \r
- * QUEUE MANAGER Reports an error\r
- */\r
-#define NETAPI_ERR_QLLD -3\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_NOTFOUND\r
- * the resource cannot be located\r
- */\r
-#define NETAPI_ERR_NOTFOUND -4\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_BUSY\r
- * Temporarily out of resources or resource leak\r
- */\r
-#define NETAPI_ERR_BUSY -5 \r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_NWAL_ERR0\r
- * NWAL subsytem reports error \r
- */\r
-#define NETAPI_ERR_NWAL_ERR0 -6\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_NOT_IMLEMENTED_\r
- * Feature not implemented in this version \r
- */\r
-#define NETAPI_ERR_NOT_IMPLEMENTED -7\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_NORES\r
- * no free (hw) resources available \r
- */\r
-#define NETAPI_ERR_NORES -8\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_ALREADY_CANCELLED\r
- * timer has already been cancelled\r
- */\r
-#define NETAPI_ERR_ALREADY_CANCELLED -100\r
-/**\r
-* @ingroup NETAPI_RetValue\r
- * @def NETAPI_ERR_NWAL_TX_ERR\r
- * error trying to send to NWAL. \r
- */\r
-#define NETAPI_ERR_NWAL_TX_ERR -65536\r
-#endif\r
+/*******************************
+ * file: netapi_err.h
+ * purpose: netapi error codes
+ **************************************************************
+ * @file netapi.h
+ *
+ * @brief DESCRIPTION: netapi Error Definitions for user space transport
+ * library
+ *
+ * REVISION HISTORY: rev 0.0.1
+ *
+ * Copyright (c) Texas Instruments Incorporated 2010-2011
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ ******************************/
+
+#ifndef __NETAPI_ERR__
+#define __NETAPI_ERR__
+
+/** @defgroup netapi_errors NETAPI Error Return Values
+ * @ingroup netapi
+ */
+
+/**
+ * @def NETAPI_ERR_OK
+ * @ingroup netapi_errors
+ * No error
+ */
+#define NETAPI_ERR_OK 0
+
+/**
+ * @def NETAPI_ERR_NOMEM
+ * @ingroup netapi_errors
+ * @brief out of memory error
+ */
+#define NETAPI_ERR_NOMEM -1
+
+/**
+ * @def NETAPI_ERR_BAD_INPUT
+ * @ingroup netapi_errors
+ * @brief arguments or configuraiton is invalid
+ */
+#define NETAPI_ERR_BAD_INPUT -2
+
+/**
+ * @def NETAPI_ERR_QLLD
+ * @ingroup netapi_errors
+ * @brief QUEUE MANAGER Reports an error
+ */
+#define NETAPI_ERR_QLLD -3
+
+/**
+ * @def NETAPI_ERR_NOTFOUND
+ * @ingroup netapi_errors
+ * @brief the resource cannot be located
+ */
+#define NETAPI_ERR_NOTFOUND -4
+/**
+ * @def NETAPI_ERR_BUSY
+ * @ingroup netapi_errors
+ * @brief Temporarily out of resources or resource leak
+ */
+#define NETAPI_ERR_BUSY -5
+
+/**
+ * @def NETAPI_ERR_NWAL_ERR0
+ * @ingroup netapi_errors
+ * @brief NWAL subsytem reports error
+ */
+#define NETAPI_ERR_NWAL_ERR0 -6
+
+/**
+ * @def NETAPI_ERR_NOT_IMLEMENTED_
+ * @ingroup netapi_errors
+ * @brief Feature not implemented in this version
+ */
+#define NETAPI_ERR_NOT_IMPLEMENTED -7
+
+/**
+ * @def NETAPI_ERR_NORES
+ * @ingroup netapi_errors
+ * @brief no free (hw) resources available
+ */
+#define NETAPI_ERR_NORES -8
+
+/**
+ * @def NETAPI_ERR_ALREADY_CANCELLED
+ * @ingroup netapi_errors
+ * @brief timer has already been cancelled
+ */
+#define NETAPI_ERR_ALREADY_CANCELLED -100
+
+/**
+ * @def NETAPI_ERR_NWAL_TX_ERR
+ * @ingroup netapi_errors
+ * @brief error trying to send to NWAL.
+ */
+#define NETAPI_ERR_NWAL_TX_ERR -65536
+#endif