1de2362d3Smrg/*
2de2362d3Smrg * Copyright 2012 Red Hat, Inc.
3de2362d3Smrg *
4de2362d3Smrg * Permission is hereby granted, free of charge, to any person obtaining a
5de2362d3Smrg * copy of this software and associated documentation files (the "Software"),
6de2362d3Smrg * to deal in the Software without restriction, including without limitation
7de2362d3Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8de2362d3Smrg * and/or sell copies of the Software, and to permit persons to whom the
9de2362d3Smrg * Software is furnished to do so, subject to the following conditions:
10de2362d3Smrg *
11de2362d3Smrg * The above copyright notice and this permission notice (including the next
12de2362d3Smrg * paragraph) shall be included in all copies or substantial portions of the
13de2362d3Smrg * Software.
14de2362d3Smrg *
15de2362d3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16de2362d3Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17de2362d3Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18de2362d3Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19de2362d3Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20de2362d3Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21de2362d3Smrg * DEALINGS IN THE SOFTWARE.
22de2362d3Smrg *
23de2362d3Smrg * Author: Dave Airlie <airlied@redhat.com>
24de2362d3Smrg */
25de2362d3Smrg
26de2362d3Smrg#ifndef COMPAT_API_H
27de2362d3Smrg#define COMPAT_API_H
28de2362d3Smrg
2918781e08Smrg#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0)
308bf5c682Smrg#define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, pointer pTimeout
318bf5c682Smrg#define BLOCKHANDLER_ARGS pScreen, pTimeout
3218781e08Smrg#else
338bf5c682Smrg#define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, pointer pTimeout, pointer pReadmask
348bf5c682Smrg#define BLOCKHANDLER_ARGS pScreen, pTimeout, pReadmask
35de2362d3Smrg#endif
36de2362d3Smrg
37cd2eb4f7Smrg#if ABI_VIDEODRV_VERSION < SET_ABI_VERSION(25, 2)
38cd2eb4f7Smrg#define current_primary current_master
39cd2eb4f7Smrg#define primary_pixmap master_pixmap
40cd2eb4f7Smrg#define secondary_dst slave_dst
41a7f02474Smrg#endif
42a7f02474Smrg
43de2362d3Smrg#endif
44