mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 10:00:36 +02:00
- 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.
12 lines
558 B
C
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 |