diff options
author | Adam Jackson <ajax@redhat.com> | 2016-07-19 10:03:56 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-07-19 10:12:45 -0400 |
commit | 42e260a7ab630fdfa4664f467dad25e7178ff809 (patch) | |
tree | ff2677b1cfe35e7a4a89d622504d19dd2053eeb5 /src/compat-api.h | |
parent | 38d888e0f377bf28373b55c3250c39ab5f8c95b3 (diff) |
Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/compat-api.h')
-rw-r--r-- | src/compat-api.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h index 0a87cf5..62d9481 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -78,11 +78,19 @@ #define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, 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 + +#define WAKEUPHANDLER_ARGS_DECL ScreenPtr arg, unsigned long result +#define WAKEUPHANDLER_ARGS arg, result +#else #define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask #define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask #define WAKEUPHANDLER_ARGS_DECL ScreenPtr arg, unsigned long result, pointer read_mask #define WAKEUPHANDLER_ARGS arg, result, read_mask +#endif #define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen #define CLOSE_SCREEN_ARGS pScreen |