OSAPI
0.29
Open System API
status_defs.h
Go to the documentation of this file.
1
// *****************************************************************************************
2
//
3
// File description:
4
//
5
// Author: Joao Costa
6
// Purpose: Provide Status module macros & other definitions
7
//
8
// *****************************************************************************************
9
10
#ifndef OSAPI_STATUS_DEFS_H_
11
#define OSAPI_STATUS_DEFS_H_
12
15
16
// *****************************************************************************************
17
//
18
// Section: Import headers
19
//
20
// *****************************************************************************************
21
22
// Include standard C headers
23
#include <stdbool.h>
24
25
// Include OSAPI headers
26
#include "error/error_types.h"
27
28
// Include own module pubic definitions
29
#include "
status/status_macros.h
"
30
31
32
// *****************************************************************************************
33
//
34
// Section: Macros/definitions for internal usage
35
//
36
// *****************************************************************************************
37
41
#define OSAPI_STATUS_STRING_SIZE 101
42
43
45
enum
osapi_status_e_library_id
46
{
47
osapi_status_library_osapi
= 0,
48
49
// System Libraries get negative codes
50
osapi_status_library_c
= -1,
51
osapi_status_library_loader
= -2,
52
};
53
55
#define RETURN_STATUS_SUCCESS { t_status st; st.code = 0; return st; }
56
57
58
// Support macros for setting internal/external status errors
59
61
#define status_iset(m,f,e,r) status_set( m, osapi_status_library_osapi, f, e, r )
62
64
#define status_eset(m,f,e,r) status_set( m, osapi_status_library_c, f, e, r )
65
66
67
#endif
/* OSAPI_STATUS_DEFS_H_ */
osapi_status_library_osapi
@ osapi_status_library_osapi
Internal OSAPI library.
Definition:
status_defs.h:47
osapi_status_library_loader
@ osapi_status_library_loader
Loader library.
Definition:
status_defs.h:51
status_macros.h
File providing public definitions for the status module.
osapi_status_e_library_id
osapi_status_e_library_id
The enum that defines the library ID used by the t_status type.
Definition:
status_defs.h:45
osapi_status_library_c
@ osapi_status_library_c
LibC Library.
Definition:
status_defs.h:50
code
status
status_defs.h
Generated by
1.8.17