|
PebbleOS v4.47.0
|
Global status codes and related macros. More...
#include <stdint.h>Macros | |
| #define | DECLARE_DOMAIN_STATUS(e) ((status_t)(e & (1 << 30))) |
| #define | PASSED(s) ((status_t)(s) >= 0) |
| #define | FAILED(s) ((status_t)(s) < 0) |
Typedefs | |
| typedef int32_t | status_t |
| Return value for system operations. See StatusCode for possible values. | |
Enumerations | |
| enum | StatusCode { S_SUCCESS = 0 , E_ERROR = -1 , E_UNKNOWN = -2 , E_INTERNAL = -3 , E_INVALID_ARGUMENT = -4 , E_OUT_OF_MEMORY = -5 , E_OUT_OF_STORAGE = -6 , E_OUT_OF_RESOURCES = -7 , E_RANGE = -8 , E_DOES_NOT_EXIST = -9 , E_INVALID_OPERATION = -10 , E_BUSY = -11 , E_AGAIN = -12 , S_TRUE = 1 , S_FALSE = 0 , S_NO_MORE_ITEMS = 2 , S_NO_ACTION_REQUIRED = 3 } |
| Status codes. See status_t. More... | |
Global status codes and related macros.
| #define DECLARE_DOMAIN_STATUS | ( | e | ) | ((status_t)(e & (1 << 30))) |
| #define FAILED | ( | s | ) | ((status_t)(s) < 0) |
| #define PASSED | ( | s | ) | ((status_t)(s) >= 0) |
| typedef int32_t status_t |
Return value for system operations. See StatusCode for possible values.
| enum StatusCode |
Status codes. See status_t.