uLib
inc
ulib_result.h
Go to the documentation of this file.
1
// Copyright (c) Microsoft. All rights reserved.
2
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
10
#ifndef AZ_ULIB_RESULT_H
11
#define AZ_ULIB_RESULT_H
12
13
#include "azure_macro_utils/macro_utils.h"
14
#include "umock_c/umock_c_prod.h"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
23
#define AZ_ULIB_ERROR_FLAG 0X80
24
28
typedef
enum
AZ_ULIB_RESULT_TAG
{
29
30
//SUCCESS RESULTS
31
AZ_ULIB_SUCCESS
= 0,
32
AZ_ULIB_EOF
= 1,
34
//ERROR RESULTS
35
AZ_ULIB_OUT_OF_MEMORY_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 0),
36
AZ_ULIB_NO_SUCH_ELEMENT_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 1),
37
AZ_ULIB_ILLEGAL_ARGUMENT_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 2),
38
AZ_ULIB_SECURITY_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 3),
39
AZ_ULIB_SYSTEM_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 4),
40
AZ_ULIB_CANCELLED_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 5),
41
AZ_ULIB_BUSY_ERROR
= (
AZ_ULIB_ERROR_FLAG
| 6)
42
}
AZ_ULIB_RESULT
;
43
44
45
46
#ifdef __cplusplus
47
}
48
#endif //__cplusplus
49
50
#endif //AZ_ULIB_RESULT_H
AZ_ULIB_SUCCESS
Definition:
ulib_result.h:31
AZ_ULIB_SECURITY_ERROR
Definition:
ulib_result.h:38
AZ_ULIB_EOF
Definition:
ulib_result.h:32
AZ_ULIB_RESULT
enum AZ_ULIB_RESULT_TAG AZ_ULIB_RESULT
Enumeration of ulib results.
AZ_ULIB_ERROR_FLAG
#define AZ_ULIB_ERROR_FLAG
Error bit for error values.
Definition:
ulib_result.h:23
AZ_ULIB_BUSY_ERROR
Definition:
ulib_result.h:41
AZ_ULIB_OUT_OF_MEMORY_ERROR
Definition:
ulib_result.h:35
AZ_ULIB_NO_SUCH_ELEMENT_ERROR
Definition:
ulib_result.h:36
AZ_ULIB_CANCELLED_ERROR
Definition:
ulib_result.h:40
AZ_ULIB_ILLEGAL_ARGUMENT_ERROR
Definition:
ulib_result.h:37
AZ_ULIB_RESULT_TAG
AZ_ULIB_RESULT_TAG
Enumeration of ulib results.
Definition:
ulib_result.h:28
AZ_ULIB_SYSTEM_ERROR
Definition:
ulib_result.h:39
Generated by
1.8.15