Files
zftpd/include/instance_control.h
seregonwar 7589664a6d feat(platform): volumes, disc, DNS filter, PS5 offsets and instance control
Add removable-volume detection that ignores empty slots, disc eject/state
helpers, the userland DNS filter, PS5 firmware offset lookup with the optional
kernel net filter, and a control port a new payload uses to retire the
previous instance.
2026-09-30 17:50:57 +02:00

18 lines
644 B
C

#ifndef ZFTPD_INSTANCE_CONTROL_H
#define ZFTPD_INSTANCE_CONTROL_H
/* Replace the previous console payload: ask it to shut down cooperatively,
* verify that it released the console, and only then let this instance start.
* Returns -1 when a verified previous instance is still alive; the caller must
* not bind fallback service ports in that case. */
int instance_control_replace_previous(void);
/* Control listener and identity file for this payload. */
int instance_control_start(void);
void instance_control_stop(void);
/* Ask the payload's main thread to run its normal shutdown sequence. */
void zftpd_shutdown_request(void);
#endif