uLib
Macros | Typedefs | Enumerations
ulib_result.h File Reference

ulib return values More...

#include "azure_macro_utils/macro_utils.h"
#include "umock_c/umock_c_prod.h"

Go to the source code of this file.

Macros

#define AZ_ULIB_ERROR_FLAG   0X80
 Error bit for error values.
 

Typedefs

typedef enum AZ_ULIB_RESULT_TAG AZ_ULIB_RESULT
 Enumeration of ulib results.
 

Enumerations

enum  AZ_ULIB_RESULT_TAG {
  AZ_ULIB_SUCCESS = 0, AZ_ULIB_EOF = 1, AZ_ULIB_OUT_OF_MEMORY_ERROR = (AZ_ULIB_ERROR_FLAG | 0), AZ_ULIB_NO_SUCH_ELEMENT_ERROR = (AZ_ULIB_ERROR_FLAG | 1),
  AZ_ULIB_ILLEGAL_ARGUMENT_ERROR = (AZ_ULIB_ERROR_FLAG | 2), AZ_ULIB_SECURITY_ERROR = (AZ_ULIB_ERROR_FLAG | 3), AZ_ULIB_SYSTEM_ERROR = (AZ_ULIB_ERROR_FLAG | 4), AZ_ULIB_CANCELLED_ERROR = (AZ_ULIB_ERROR_FLAG | 5),
  AZ_ULIB_BUSY_ERROR = (AZ_ULIB_ERROR_FLAG | 6)
}
 Enumeration of ulib results. More...
 

Detailed Description

ulib return values

Definition in file ulib_result.h.

Enumeration Type Documentation

◆ AZ_ULIB_RESULT_TAG

Enumeration of ulib results.

Enumerator
AZ_ULIB_SUCCESS 

Successful return

AZ_ULIB_EOF 

End of fle (no more data to read)

AZ_ULIB_OUT_OF_MEMORY_ERROR 

Out of memory error

AZ_ULIB_NO_SUCH_ELEMENT_ERROR 

No such element error

AZ_ULIB_ILLEGAL_ARGUMENT_ERROR 

Illegal argument error

AZ_ULIB_SECURITY_ERROR 

Security error

AZ_ULIB_SYSTEM_ERROR 

System error

AZ_ULIB_CANCELLED_ERROR 

Cancelled error

AZ_ULIB_BUSY_ERROR 

Busy error

Definition at line 28 of file ulib_result.h.