upload tizen2.0 source
[framework/uifw/xorg/lib/libxext.git] / man / XdbeQueryExtension.man
1 .\" Copyright (c) 1995  Hewlett-Packard Company
2 .\"
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software furnished to do so, subject to the following conditions:
9 .\"
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
12 .\"
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
16 .\" HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
18 .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 .\" SOFTWARE.
20 .\"
21 .\" Except as contained in this notice, the name of the Hewlett-Packard Company shall not
22 .\" be used in advertising or otherwise to promote the sale, use or other
23 .\" dealing in this Software without prior written authorization from the
24 .\" Hewlett-Packard Company.
25 .\"
26 .TH XdbeQueryExtension __libmansuffix__ __xorgversion__ "X FUNCTIONS"
27 .SH NAME
28 XdbeQueryExtension - returns the version of DBE supported by the server.
29 .SH SYNOPSIS
30 \&#include <X11/extensions/Xdbe.h>
31
32 Status XdbeQueryExtension(
33     Display *dpy,
34     int     *major_version_return,
35     int     *minor_version_return)
36 .SH DESCRIPTION
37 Sets
38 .I major_version_return
39 and
40 .I minor_version_return
41 to the major and minor
42 DBE protocol version supported by the server.  If the DBE library is
43 compatible with the version returned by the server, this function returns
44 non-zero.  If
45 .I dpy
46 does not support the DBE extension, or if there was an error
47 during communication with the server, or if the server and library protocol
48 versions are incompatible, this function returns zero.  No other Xdbe functions
49 may be called before this function.  If a client violates this rule, the
50 effects of all subsequent Xdbe calls that it makes are undefined.
51 .SH SEE ALSO
52 DBE,
53 .I XdbeAllocateBackBufferName(),
54 .I XdbeBeginIdiom(),
55 .I XdbeDeallocateBackBufferName(),
56 .I XdbeEndIdiom(),
57 .I XdbeFreeVisualInfo(),
58 .I XdbeGetBackBufferAttributes(),
59 .I XdbeGetVisualInfo(),
60 .I XdbeSwapBuffers().
61