Files
ps5upload/payload/include/notif.h
T
phantomptrandClaude Opus 5.5 c14782944d PS5Upload v5.35.0
Upload, install, convert and manage PS5 game packages over the network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 04:31:13 -07:00

30 lines
860 B
C

#ifndef PS5UPLOAD_NOTIF_H
#define PS5UPLOAD_NOTIF_H
#include <stdint.h>
#include <stddef.h>
typedef enum {
NOTIF_LEVEL_INFO = 0,
NOTIF_LEVEL_WARN = 1,
NOTIF_LEVEL_ERROR = 2,
} notif_level_t;
/* Load the persisted notification ring from disk. Call once at payload
* startup (before any client connects) so notifications pushed in a
* previous payload lifetime survive a redeploy — the whole point of an
* on-PS5 store vs. the client-side inbox. Safe to call when no file
* exists (starts empty) and idempotent enough for a single boot call. */
void notif_init(void);
int notif_list(uint64_t since_seq, char *buf, size_t cap,
size_t *written);
int notif_send(const char *msg, int level);
/* Empty the notification ring and its on-disk snapshot.
* Returns how many entries were removed. */
int notif_clear(void);
#endif