1XQueryExtension(3)                X FUNCTIONS               XQueryExtension(3)
2
3
4

NAME

6       XQueryExtension,  XListExtensions,  XFreeExtensionList - list available
7       extensions
8

SYNTAX

10       Bool      XQueryExtension(display,      name,      major_opcode_return,
11              first_event_return, first_error_return)
12
13       char **XListExtensions(display, nextensions_return)
14
15       XFreeExtensionList(list)
16

ARGUMENTS

18       display   Specifies the connection to the X server.
19
20       name      Specifies the extension name.
21
22       major_opcode_return
23                 Returns the major opcode.
24
25       first_event_return
26                 Returns the first event code, if any.
27
28       first_error_return
29                 Returns the first error code, if any.
30
31       nextensions_return
32                 Returns the number of extensions listed.
33
34       list      Specifies the list of extension names.
35

DESCRIPTION

37       The  XQueryExtension  function  determines  if  the  named extension is
38       present.  If the extension  is  not  present,  XQueryExtension  returns
39       False;  otherwise,  it  returns  True.   If  the  extension is present,
40       XQueryExtension  returns  the  major  opcode  for  the   extension   to
41       major_opcode_return;  otherwise, it returns zero.  Any minor opcode and
42       the request formats are specific to the extension.   If  the  extension
43       involves additional event types, XQueryExtension returns the base event
44       type code to first_event_return; otherwise, it returns zero. The format
45       of  the events is specific to the extension.  If the extension involves
46       additional error codes, XQueryExtension returns the base error code  to
47       first_error_return;  otherwise,  it  returns zero.  The format of addi‐
48       tional data in the errors is specific to the extension.  If the  exten‐
49       sion  name is not in the Host Portable Character Encoding the result is
50       implementation-dependent.  Uppercase and lowercase matter; the  strings
51       ``thing'', ``Thing'', and ``thinG'' are all considered different names.
52
53       The XListExtensions function returns a list of all extensions supported
54       by the server. If the data returned by the server is in the Latin  Por‐
55       table  Character  Encoding,  then  the returned strings are in the Host
56       Portable Character Encoding. Otherwise, the result  is  implementation-
57       dependent.
58
59       The  XFreeExtensionList function frees the memory allocated by XListEx‐
60       tensions.
61
62
63
64X Version 11                     libX11 1.6.5               XQueryExtension(3)
Impressum