From 8c27290245b7bcc7cd2f72f3b4a7562294b43bbe Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 23 Jun 2020 16:25:36 +0200 Subject: Split directories better --- ptimer.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 ptimer.h (limited to 'ptimer.h') diff --git a/ptimer.h b/ptimer.h deleted file mode 100644 index 0b53590..0000000 --- a/ptimer.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef fooptimerhfoo -#define fooptimerhfoo - -struct ptimer_task { - unsigned interval; - unsigned times; - void (*cb)(struct ptimer_task *); - bool active; - unsigned remain; - struct list_head list; -}; - -static inline void -ptask_init(struct ptimer_task *ptask, unsigned interval, - unsigned times, void(*cb)(struct ptimer_task *)) -{ - ptask->interval = interval; - ptask->times = times; - ptask->cb = cb; - ptask->active = false; -} - -void ptimer_del_task(struct ptimer_task *ptask); - -void ptimer_add_task(struct ptimer_task *ptask); - -void ptimer_refdump(); - -void ptimer_delete(); - -void ptimer_init(); - -#endif -- cgit v1.2.3