rcutils  master
C API providing common utilities and data structures.
rcutils_ret.h
Go to the documentation of this file.
1 // Copyright 2017 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
16 
17 #ifndef RCUTILS__TYPES__RCUTILS_RET_H_
18 #define RCUTILS__TYPES__RCUTILS_RET_H_
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
26 typedef int rcutils_ret_t;
27 
29 #define RCUTILS_RET_OK 0
30 #define RCUTILS_RET_WARN 1
32 #define RCUTILS_RET_ERROR 2
34 
36 #define RCUTILS_RET_BAD_ALLOC 10
37 #define RCUTILS_RET_INVALID_ARGUMENT 11
39 #define RCUTILS_RET_NOT_ENOUGH_SPACE 12
41 #define RCUTILS_RET_NOT_INITIALIZED 13
43 #define RCUTILS_RET_NOT_FOUND 14
45 
47 #define RCUTILS_RET_STRING_MAP_ALREADY_INIT 30
48 #define RCUTILS_RET_STRING_MAP_INVALID 31
50 #define RCUTILS_RET_STRING_KEY_NOT_FOUND 32
52 
54 #define RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID 40
55 #define RCUTILS_RET_LOGGING_SEVERITY_STRING_INVALID 41
57 
59 #define RCUTILS_RET_HASH_MAP_NO_MORE_ENTRIES 50
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif // RCUTILS__TYPES__RCUTILS_RET_H_
rcutils_ret_t
int rcutils_ret_t
The type that holds a return value for an rcutils operation.
Definition: rcutils_ret.h:26