OSAPI  0.29
Open System API
status_defs.h File Reference

File providing definitions for the status module. More...

#include <stdbool.h>
#include "error/error_types.h"
#include "status/status_macros.h"
Include dependency graph for status_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OSAPI_STATUS_STRING_SIZE   101
 Maximum size of the error string The t_status type supports either error code or an error string. This last type, the error string, is limited in size to the this value.
 
#define RETURN_STATUS_SUCCESS   { t_status st; st.code = 0; return st; }
 Short notation to set a status type with a default value of success.
 
#define status_iset(m, f, e, r)   status_set( m, osapi_status_library_osapi, f, e, r )
 Set status type with OSAPI library information.
 
#define status_eset(m, f, e, r)   status_set( m, osapi_status_library_c, f, e, r )
 Set status type with C library information.
 

Enumerations

enum  osapi_status_e_library_id { osapi_status_library_osapi = 0, osapi_status_library_c = -1, osapi_status_library_loader = -2 }
 The enum that defines the library ID used by the t_status type. More...
 

Detailed Description

File providing definitions for the status module.

Enumeration Type Documentation

◆ osapi_status_e_library_id

The enum that defines the library ID used by the t_status type.

Enumerator
osapi_status_library_osapi 

Internal OSAPI library.

osapi_status_library_c 

LibC Library.

osapi_status_library_loader 

Loader library.