blob: f195348c9bfefeae6abca8448236f6c742671a08 [file] [log] [blame]
Chia-I Wu1db76e02014-09-15 14:21:14 +08001/*
2 * XGL
3 *
4 * Copyright (C) 2014 LunarG, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *
24 * Authors:
25 * Chia-I Wu <olv@lunarg.com>
26 */
27
28#ifndef WSI_X11_H
29#define WSI_X11_H
30
31#include "intel.h"
32
33struct intel_wsi_x11;
Chia-I Wu7fbe2ab2014-11-07 13:26:45 +080034struct intel_wsi_x11_window;
Chia-I Wu1db76e02014-09-15 14:21:14 +080035
36#ifdef ENABLE_WSI_X11
37
38XGL_RESULT intel_wsi_x11_wait(struct intel_wsi_x11 *x11,
Chia-I Wu7fbe2ab2014-11-07 13:26:45 +080039 struct intel_wsi_x11_window *win,
Chia-I Wu1db76e02014-09-15 14:21:14 +080040 uint32_t serial, bool wait);
41
42void intel_wsi_x11_destroy(struct intel_wsi_x11 *x11);
43
Chia-I Wu1db76e02014-09-15 14:21:14 +080044#else /* ENABLE_WSI_X11 */
45
46static inline XGL_RESULT intel_wsi_x11_wait(struct intel_wsi_x11 *x11,
Chia-I Wu7fbe2ab2014-11-07 13:26:45 +080047 struct intel_wsi_x11_window *win,
Chia-I Wu1db76e02014-09-15 14:21:14 +080048 uint32_t serial, bool wait)
49{
50 return XGL_SUCCESS;
51}
52
53static inline void intel_wsi_x11_destroy(struct intel_wsi_x11 *x11)
54{
55}
56
Chia-I Wu1db76e02014-09-15 14:21:14 +080057#endif /* ENABLE_WSI_X11 */
58
59#endif /* WSI_X11_H */