X FUNCTIONS XQueryExtension(3x11)
NAME
XQueryExtension, XListExtensions, XFreeExtensionList - list
available extensions SYNTAXcc [ flag... ] file... -lX11 [ library... ]
Bool XQueryExtension(display, name, major_opcode_return,
first_event_return, first_error_return)
char **XListExtensions(display, nextensions_return)
XFreeExtensionList(list) ARGUMENTS display Specifies the connection to the X server. name Specifies the extension name.major_opcode_return
Returns the major opcode.first_event_return
Returns the first event code, if any.first_error_return
Returns the first error code, if any.nextensions_return
Returns the number of extensions listed. list Specifies the list of extension names.DESCRIPTION
The XQueryExtension function determines if the named exten-
sion is present. If the extension is not present, XQueryEx-
tension returns False; otherwise, it returns True. If the extension is present, XQueryExtension returns the majoropcode for the extension to major_opcode_return; otherwise,
it returns zero. Any minor opcode and the request formats are specific to the extension. If the extension involves additional event types, XQueryExtension returns the baseevent type code to first_event_return; otherwise, it returns
zero. The format of the events is specific to the extension.If the extension involves additional error codes, XQueryEx-
tension returns the base error code to first_error_return;
otherwise, it returns zero. The format of additional datain the errors is specific to the extension. If the exten-
sion name is not in the Host Portable Character Encoding theresult is implementation-dependent. Uppercase and lowercase
matter; the strings ``thing'', ``Thing'', and ``thinG'' are all considered different names. X Version 11 Last change: libX11 1.3.5 1 X FUNCTIONS XQueryExtension(3x11)The XListExtensions function returns a list of all exten-
sions supported by the server. If the data returned by the server is in the Latin Portable Character Encoding, then thereturned strings are in the Host Portable Character Encod-
ing. Otherwise, the result is implementation-dependent.
The XFreeExtensionList function frees the memory allocatedby XListExtensions.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libx11 ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libX11 1.3.5 2