From f8ee9b7414a334a8c48f7cbfb4691649e802f5d4 Mon Sep 17 00:00:00 2001 From: Lephe Date: Thu, 2 Jul 2020 08:51:59 +0200 Subject: [PATCH] timer: allow integer pointers in callback arguments --- include/gint/timer.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/gint/timer.h b/include/gint/timer.h index 4c4da72..7c4de42 100644 --- a/include/gint/timer.h +++ b/include/gint/timer.h @@ -94,6 +94,11 @@ typedef union int (*pVv) (volatile void *); int (*pCv) (const void *); int (*pCVv)(volatile const void *); + /* Integer pointer argument, cv-qualified as needed */ + int (*pi) (int *); + int (*pVi) (volatile int *); + int (*pCi) (const int *); + int (*pCVi)(volatile const int *); } GTRANSPARENT timer_callback_t;