Files
SirHumza--orbisRPC/orbisrpc/daemon.h
T
SirHumza bf5579d6da Stable gateway backend: mbedTLS, 8MB READY, JSON-safe parsing
- BearSSL replaced with mbedTLS (TLSv1.3 passes Cloudflare)
- 8MB frame cap + truncation-proof gateway op/seq scanner
- Thread-safe compat, locked logging, atomic config with template
- Daemon keeps last-good config, persistent presence timer
- 256B token buffers, weak-libc shims, portable build preflights
- Tests: gateway spoof + OOM cases pass

Still open: display names fall back to titleId in sandbox,
cover art needs shared Discord app assets. Backend fully functional.
2026-09-19 01:03:17 +02:00

12 lines
558 B
C

/* daemon.h - shared orbisRPC daemon loop (payload ELF and GoldHEN plugin). */
#ifndef DAEMON_H
#define DAEMON_H
/* fixed_game_name != NULL: post presence for that game only (plugin mode).
* NULL: poll the foreground app (payload mode).
* Returns 0 on clean stop, 1 on missing/invalid configuration, or 2 when
* Discord rejects the token with close code 4004. */
int daemon_run(const char *fixed_game_name);
void daemon_request_stop(void);
void daemon_clear_stop(void);
int daemon_stop_requested(void); /* 1 when plugin_unload() wants us to exit */
#endif