objc

env.h
Go to the documentation of this file.
1 
9 #pragma once
10 #include <stdint.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
24 typedef enum {
27  (1 << 0),
29  (1 << 1),
30  SYS_ENV_SIGNAL_QUIT = (1 << 2),
32 
43 
73  sys_env_signal_callback_t callback);
74 
80 extern const char *sys_env_serial(void);
81 
88 extern const char *sys_env_name(void);
89 
96 extern const char *sys_env_version(void);
97 
98 #ifdef __cplusplus
99 }
100 #endif
Interrupt signal (interrupt request from user)
Definition: env.h:28
No signal.
Definition: env.h:25
const char * sys_env_version(void)
Returns the version of the current environment.
const char * sys_env_serial(void)
Returns a unique identifier for the current environment.
const char * sys_env_name(void)
Returns the name of the current environment.
bool sys_env_signalhandler(sys_env_signal_t mask, sys_env_signal_callback_t callback)
Sets a handler for environment signals.
sys_env_signal_t
Environment signal types.
Definition: env.h:24
Quit signal (quit request from user)
Definition: env.h:30
Termination signal (termination request from OS)
Definition: env.h:26
void(* sys_env_signal_callback_t)(sys_env_signal_t signal)
Callback function type for handling environment signals.
Definition: env.h:42