dpc: add dpc_prepare

This commit is contained in:
2025-12-28 03:50:00 +01:00
parent a81ae88afb
commit 99d3374fc0
11 changed files with 45 additions and 27 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ typedef struct _dpc_t {
dpcarg_t arg;
} dpc_t;
void dpc_enqueue(dpc_t *dpc, dpcfn_t, dpcarg_t);
void dpc_prepare(dpc_t *dpc, dpcfn_t fn);
void dpc_enqueue(dpc_t *dpc, dpcarg_t arg);
void dpc_dequeue(dpc_t *dpc);
void dpc_init();
+1 -2
View File
@@ -11,9 +11,8 @@ typedef struct timerentry_t {
struct timerentry_t *next;
time_t absolutetick;
time_t repeatus;
dpcfn_t fn;
dpcarg_t arg;
dpc_t dpc;
dpcarg_t arg;
bool fired;
} timerentry_t;