Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / kdrive / ephyr / ephyrhostglx.h
CommitLineData
a09e091a
JB
1/*
2 * Xephyr - A kdrive X server thats runs in a host X window.
3 * Authored by Matthew Allum <mallum@openedhand.com>
4 *
5 * Copyright © 2007 OpenedHand Ltd
6 *
7 * Permission to use, copy, modify, distribute, and sell this software and its
8 * documentation for any purpose is hereby granted without fee, provided that
9 * the above copyright notice appear in all copies and that both that
10 * copyright notice and this permission notice appear in supporting
11 * documentation, and that the name of OpenedHand Ltd not be used in
12 * advertising or publicity pertaining to distribution of the software without
13 * specific, written prior permission. OpenedHand Ltd makes no
14 * representations about the suitability of this software for any purpose. It
15 * is provided "as is" without express or implied warranty.
16 *
17 * OpenedHand Ltd DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 * EVENT SHALL OpenedHand Ltd BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 * PERFORMANCE OF THIS SOFTWARE.
24 *
25 * Authors:
26 * Dodji Seketeli <dodji@openedhand.com>
27 */
28#ifndef __EPHYRHOSTGLX_H__
29#define __EPHYRHOSTGLX_H__
30
31enum EphyrHostGLXGetStringOps {
32 EPHYR_HOST_GLX_UNDEF,
33 EPHYR_HOST_GLX_QueryServerString,
34 EPHYR_HOST_GLX_GetString,
35};
36
37Bool ephyrHostGLXQueryVersion(int *a_maj, int *a_min);
38Bool ephyrHostGLXGetString(int a_context_tag,
39 int a_string_name,
40 char **a_string);
41Bool ephyrHostGLXQueryServerString(int a_screen_number,
42 int a_string_name,
43 char **a_string);
44Bool ephyrHostGLXGetVisualConfigs(int a_screen,
45 int32_t * a_num_visuals,
46 int32_t * a_num_props,
47 int32_t * a_props_buf_size,
48 int32_t ** a_props_buf);
49Bool
50
51ephyrHostGLXVendorPrivGetFBConfigsSGIX(int a_screen,
52 int32_t * a_num_visuals,
53 int32_t * a_num_props,
54 int32_t * a_props_buf_size,
55 int32_t ** a_props_buf);
56Bool ephyrHostGLXSendClientInfo(int32_t a_major, int32_t a_minor,
57 const char *a_extension_list);
58Bool ephyrHostGLXCreateContext(int a_screen,
59 int a_generic_id,
60 int a_context_id,
61 int a_share_list_ctxt_id,
62 int a_render_type,
63 Bool a_direct,
64 int code);
65
66Bool ephyrHostDestroyContext(int a_ctxt_id);
67
68Bool ephyrHostGLXMakeCurrent(int a_drawable, int a_readable, int a_glx_ctxt_id,
69 int a_olg_ctxt_tag, int *a_ctxt_tag);
70
71Bool ephyrHostGetIntegerValue(int a_current_context_tag, int a_int, int *a_val);
72
73Bool ephyrHostIsContextDirect(int a_ctxt_id, int *a_is_direct);
74
75#endif /*__EPHYRHOSTGLX_H__*/