Files
iptv-downloader/notifs/notify.h
T

20 lines
445 B
C

#pragma once
#include <time.h>
typedef struct {
time_t ts;
char type[16]; /* "done" | "error" */
char msg[512];
} Notification;
extern Notification g_notifs[/* MAX_NOTIF */];
extern int g_notif_count;
extern int g_notif_tail;
void notify_add(const char *msg, const char *type);
void notify_save(void);
void notify_load(void);
/* Dismiss by timestamp; returns 1 if found */
int notify_dismiss(time_t ts);