Functions for managing the yuno (daemon process), its event loop, and IP-based access control.
Source: kernel/c/root-linux/src/c_yuno.h
register_c_yuno()¶
Registers the C_YUNO GClass — the main grandmother GClass for every
yuno daemon.
int register_c_yuno(void);Parameters
| Key | Type | Description |
|---|---|---|
- | - | This function does not take any parameters. |
Returns
0 on success.
yuno_event_loop()¶
Returns the yuno’s event loop handle. The return type is void * to
avoid exposing the yev_loop.h header to callers.
void *yuno_event_loop(void);Parameters
| Key | Type | Description |
|---|---|---|
- | - | This function does not take any parameters. |
Returns
Pointer to the yev_loop instance (cast to void *).
yuno_event_destroy()¶
Destroys and frees the yuno event loop.
void yuno_event_destroy(void);Parameters
| Key | Type | Description |
|---|---|---|
- | - | This function does not take any parameters. |
Returns
This function does not return a value.
set_yuno_must_die()¶
Orders the yuno to exit gracefully. Logs an exit message, sets the exit
code to 0, flushes logs, and calls
yuno_shutdown().
void set_yuno_must_die(void);Parameters
| Key | Type | Description |
|---|---|---|
- | - | This function does not take any parameters. |
Returns
This function does not return a value.
is_ip_allowed()¶
Checks whether an IP address is in the allowed-IPs list.
If the string contains a port (for example "192.168.1.1:8080"), the port part
is stripped before lookup.
BOOL is_ip_allowed(const char *peername);Parameters
| Key | Type | Description |
|---|---|---|
peername | const char * | IP address or IP:port string. |
Returns
TRUE if the IP is allowed, FALSE otherwise.
is_ip_denied()¶
Checks whether an IP address is in the denied-IPs list. Denied IPs take precedence over allowed IPs.
BOOL is_ip_denied(const char *peername);Parameters
| Key | Type | Description |
|---|---|---|
peername | const char * | IP address or IP:port string. |
Returns
TRUE if the IP is denied, FALSE otherwise.