ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
shutdown.h
Go to the documentation of this file.
1
22
23#pragma once
24
25#include <stdbool.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
36typedef bool (*shutdown_check_fn)(void);
37
49
51void shutdown_request(void);
52
63bool shutdown_is_requested(void);
64
66
67#ifdef __cplusplus
68}
69#endif
void shutdown_request(void)
Definition common.c:85
bool(* shutdown_check_fn)(void)
Shutdown check callback function type.
Definition shutdown.h:36
bool shutdown_is_requested(void)
Check if shutdown has been requested.
Definition common.c:87
void shutdown_register_callback(shutdown_check_fn callback)
Register application's shutdown check function.
Definition common.c:81