EII Message Bus C Reference
msgbusret.h
Go to the documentation of this file.
1 // Copyright (c) 2019 Intel Corporation.
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining a copy
4 // of this software and associated documentation files (the "Software"), to
5 // deal in the Software without restriction, including without limitation the
6 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 // sell copies of the Software, and to permit persons to whom the Software is
8 // furnished to do so, subject to the following conditions:
9 //
10 // The above copyright notice and this permission notice shall be included in
11 // all copies or substantial portions of the Software.
12 //
13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 // FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 // IN THE SOFTWARE.
20 
26 #ifndef _EII_MESSAGE_BUS_MSGRET_H
27 #define _EII_MESSAGE_BUS_MSGRET_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 typedef enum {
37  MSG_SUCCESS = 0,
38  MSG_ERR_PUB_FAILED = 1,
39  MSG_ERR_SUB_FAILED = 2,
40  MSG_ERR_RESP_FAILED = 3,
41  MSG_ERR_RECV_FAILED = 4,
42  MSG_ERR_RECV_EMPTY = 5,
43  MSG_ERR_ALREADY_RECEIVED = 6,
44  MSG_ERR_NO_SUCH_SERVICE = 7,
45  MSG_ERR_SERVICE_ALREADY_EXIST = 8,
46  MSG_ERR_BUS_CONTEXT_DESTROYED = 9,
47  MSG_ERR_NO_MEMORY = 10,
48  MSG_ERR_ELEM_NOT_EXIST = 11,
49  MSG_ERR_ELEM_ALREADY_EXISTS = 12,
50  MSG_ERR_ELEM_BLOB_ALREADY_SET = 13,
51  MSG_ERR_ELEM_BLOB_MALFORMED = 14,
52  MSG_RECV_NO_MESSAGE = 15,
53  MSG_ERR_SERVICE_INIT_FAILED = 16,
54  MSG_ERR_REQ_FAILED = 17,
55  MSG_ERR_EINTR = 18,
56  MSG_ERR_MSG_SEND_FAILED = 19,
57  MSG_ERR_DISCONNECTED = 20,
58  MSG_ERR_AUTH_FAILED = 21,
59  MSG_ERR_ELEM_OBJ = 22,
60  MSG_ERR_ELEM_ARR = 23,
61  MSG_ERR_DESERIALIZE_FAILED = 24,
62  MSG_ERR_UNKNOWN = 255,
63 } msgbus_ret_t;
64 
72 const char* msgbus_ret_str(msgbus_ret_t ret);
73 
74 #ifdef __cplusplus
75 } // extern "C"
76 #endif
77 
78 #endif // _EII_MESSAGE_BUS_MSGRET_H
msgbus_ret_t
msgbus_ret_t
Definition: msgbusret.h:36
msgbus_ret_str
const char * msgbus_ret_str(msgbus_ret_t ret)