rcutils  master
C API providing common utilities and data structures.
Macros | Typedefs
rcutils_ret.h File Reference

Go to the source code of this file.

Macros

#define RCUTILS_RET_OK   0
 
#define RCUTILS_RET_WARN   1
 
#define RCUTILS_RET_ERROR   2
 
#define RCUTILS_RET_BAD_ALLOC   10
 Failed to allocate memory return code. More...
 
#define RCUTILS_RET_INVALID_ARGUMENT   11
 Invalid argument return code. More...
 
#define RCUTILS_RET_NOT_ENOUGH_SPACE   12
 Not enough storage to do operation. More...
 
#define RCUTILS_RET_STRING_MAP_ALREADY_INIT   30
 Given string map was either already initialized or was not zero initialized. More...
 
#define RCUTILS_RET_STRING_MAP_INVALID   31
 Given string map is invalid, perhaps not initialized yet. More...
 
#define RCUTILS_RET_STRING_KEY_NOT_FOUND   32
 Given key not found in given string map. More...
 
#define RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID   40
 Internal severity map for logger thresholds is invalid. More...
 

Typedefs

typedef int rcutils_ret_t
 

Macro Definition Documentation

◆ RCUTILS_RET_OK

#define RCUTILS_RET_OK   0

◆ RCUTILS_RET_WARN

#define RCUTILS_RET_WARN   1

◆ RCUTILS_RET_ERROR

#define RCUTILS_RET_ERROR   2

◆ RCUTILS_RET_BAD_ALLOC

#define RCUTILS_RET_BAD_ALLOC   10

Failed to allocate memory return code.

◆ RCUTILS_RET_INVALID_ARGUMENT

#define RCUTILS_RET_INVALID_ARGUMENT   11

Invalid argument return code.

◆ RCUTILS_RET_NOT_ENOUGH_SPACE

#define RCUTILS_RET_NOT_ENOUGH_SPACE   12

Not enough storage to do operation.

◆ RCUTILS_RET_STRING_MAP_ALREADY_INIT

#define RCUTILS_RET_STRING_MAP_ALREADY_INIT   30

Given string map was either already initialized or was not zero initialized.

◆ RCUTILS_RET_STRING_MAP_INVALID

#define RCUTILS_RET_STRING_MAP_INVALID   31

Given string map is invalid, perhaps not initialized yet.

◆ RCUTILS_RET_STRING_KEY_NOT_FOUND

#define RCUTILS_RET_STRING_KEY_NOT_FOUND   32

Given key not found in given string map.

◆ RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID

#define RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID   40

Internal severity map for logger thresholds is invalid.

Typedef Documentation

◆ rcutils_ret_t

typedef int rcutils_ret_t