diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-09-29 19:37:22 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2016-11-16 11:09:12 +0700 |
commit | d64d01c7a599dc3c79125701f076a3e459cefdc2 (patch) | |
tree | 31413a1d22448de8ee42f3bd595f377c8b71053a | |
parent | d5550b7f8375c3d9003731578c1570e014577348 (diff) |
Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
-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 205ac59..02876c5 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 |