Distributed Publish & Subscribe for IoT
err.h
Go to the documentation of this file.
1 
6 /*
7  *******************************************************************
8  *
9  * Copyright 2016 Intel Corporation All rights reserved.
10  *
11  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License");
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  *
25  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
26  */
27 
28 #ifndef _DPS_ERR_H
29 #define _DPS_ERR_H
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
41 typedef int DPS_Status;
43 #define DPS_OK 0
44 #define DPS_ERR_OK 0
45 #define DPS_ERR_FAILURE 1
46 #define DPS_ERR_NULL 2
47 #define DPS_ERR_ARGS 3
48 #define DPS_ERR_RESOURCES 4
49 #define DPS_ERR_READ 5
50 #define DPS_ERR_WRITE 6
51 #define DPS_ERR_TIMEOUT 7
52 #define DPS_ERR_EOD 8
53 #define DPS_ERR_OVERFLOW 9
54 #define DPS_ERR_NETWORK 10
55 #define DPS_ERR_INVALID 11
56 #define DPS_ERR_BUSY 12
57 #define DPS_ERR_EXISTS 13
58 #define DPS_ERR_MISSING 14
59 #define DPS_ERR_STALE 15
60 #define DPS_ERR_NO_ROUTE 16
61 #define DPS_ERR_NOT_STARTED 17
62 #define DPS_ERR_NOT_INITIALIZED 18
63 #define DPS_ERR_EXPIRED 19
64 #define DPS_ERR_UNRESOLVED 20
65 #define DPS_ERR_NODE_DESTROYED 21
66 #define DPS_ERR_EOF 22
67 #define DPS_ERR_NOT_IMPLEMENTED 23
68 #define DPS_ERR_SECURITY 24
69 #define DPS_ERR_NOT_ENCRYPTED 25
70 #define DPS_ERR_STOPPING 26
71 #define DPS_ERR_RANGE 27
72 #define DPS_ERR_LOST_PRECISION 28
73 #define DPS_ERR_NOT_COSE 29
82 const char* DPS_ErrTxt(DPS_Status s);
83 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif
int DPS_Status
The status code type.
Definition: err.h:41