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:10:56 -0400 |
commit | e67f3949648c20e16ac756ae28ea4a2b4a1d0f4c (patch) | |
tree | 978baff9aec0113f836d65898039c338687090ac /src/compat-api.h | |
parent | 647e5a93d9387e3bc8d2c8569e3a5f996acfb169 (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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h index 6bc946f..89976e4 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -75,8 +75,13 @@ #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 +#else #define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask #define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask +#endif #define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen #define CLOSE_SCREEN_ARGS pScreen |