summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-07-19 10:03:56 -0400
committerAdam Jackson <ajax@redhat.com>2016-07-19 10:16:24 -0400
commit4d27afae183123ad947416e98cb6cb62e20aeebe (patch)
treeb4f173ec87b2b2ff10b6ba6898698ea542daedde
parent9b04a4df4239e7e9414402f8522cb31728481a27 (diff)
Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--src/compat-api.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h
index f8b8416..f6df925 100644
--- a/src/compat-api.h
+++ b/src/compat-api.h
@@ -89,8 +89,13 @@
#define SCREEN_INIT_ARGS_DECL ScreenPtr pScrn, int argc, char **argv
+#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0)
+#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout
+#define BLOCKHANDLER_ARGS arg, pTimeout
+#else
#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask
#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask
+#endif
#define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScrn
#define CLOSE_SCREEN_ARGS pScrn