compat-api.h revision e49c54bc
1d6c0b56eSmrg/*
2d6c0b56eSmrg * Copyright 2012 Red Hat, Inc.
3d6c0b56eSmrg *
4d6c0b56eSmrg * Permission is hereby granted, free of charge, to any person obtaining a
5d6c0b56eSmrg * copy of this software and associated documentation files (the "Software"),
6d6c0b56eSmrg * to deal in the Software without restriction, including without limitation
7d6c0b56eSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8d6c0b56eSmrg * and/or sell copies of the Software, and to permit persons to whom the
9d6c0b56eSmrg * Software is furnished to do so, subject to the following conditions:
10d6c0b56eSmrg *
11d6c0b56eSmrg * The above copyright notice and this permission notice (including the next
12d6c0b56eSmrg * paragraph) shall be included in all copies or substantial portions of the
13d6c0b56eSmrg * Software.
14d6c0b56eSmrg *
15d6c0b56eSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16d6c0b56eSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17d6c0b56eSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18d6c0b56eSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19d6c0b56eSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20d6c0b56eSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21d6c0b56eSmrg * DEALINGS IN THE SOFTWARE.
22d6c0b56eSmrg *
23d6c0b56eSmrg * Author: Dave Airlie <airlied@redhat.com>
24d6c0b56eSmrg */
25d6c0b56eSmrg
26d6c0b56eSmrg#ifndef COMPAT_API_H
27d6c0b56eSmrg#define COMPAT_API_H
28d6c0b56eSmrg
29504d986fSmrg#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(22,0)
30504d986fSmrg#define HAVE_NOTIFY_FD	1
31504d986fSmrg#endif
32504d986fSmrg
33504d986fSmrg#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0)
3424b90cf4Smrg#define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, pointer pTimeout
3524b90cf4Smrg#define BLOCKHANDLER_ARGS pScreen, pTimeout
36504d986fSmrg#else
3724b90cf4Smrg#define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, pointer pTimeout, pointer pReadmask
3824b90cf4Smrg#define BLOCKHANDLER_ARGS pScreen, pTimeout, pReadmask
39d6c0b56eSmrg#endif
40d6c0b56eSmrg
4146845023Smrg#if ABI_VIDEODRV_VERSION < SET_ABI_VERSION(25, 2)
4246845023Smrg#define current_primary current_master
4346845023Smrg#define primary_pixmap master_pixmap
4446845023Smrg#define secondary_dst slave_dst
45e49c54bcSmrg#define secondary_list slave_list
46e49c54bcSmrg#define secondary_head slave_head
47e49c54bcSmrg#define is_output_secondary is_output_slave
4846845023Smrg#endif
4946845023Smrg
50d6c0b56eSmrg#endif
51