This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



XQueryExtension(3)                               X FUNCTIONS                              XQueryExtension(3)



NAME
       XQueryExtension, XListExtensions, XFreeExtensionList - list available extensions

SYNTAX
       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 extension is present.  If the extension is not
       present, XQueryExtension returns False; otherwise, it returns True.  If  the  extension  is  present,
       XQueryExtension  returns  the  major  opcode  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 exten-sion extension
       sion  involves  additional  event  types,  XQueryExtension  returns  the  base  event  type  code  to
       first_event_return; otherwise, it returns zero. The format of the events is specific  to  the  exten-sion. extension.
       sion.   If the extension involves additional error codes, XQueryExtension returns the base error code
       to first_error_return; otherwise, it returns zero.  The format of additional data in  the  errors  is
       specific  to the extension.  If the extension name is not in the Host Portable Character Encoding the
       result  is  implementation-dependent.   Uppercase  and  lowercase  matter;  the  strings   ``thing'',
       ``Thing'', and ``thinG'' are all considered different names.

       The  XListExtensions  function  returns a list of all extensions supported by the server. If the data
       returned by the server is in the Latin Portable Character Encoding, then the returned strings are  in
       the Host Portable Character Encoding. Otherwise, the result is implementation-dependent.

       The XFreeExtensionList function frees the memory allocated by XListExtensions.



X Version 11                                    libX11 1.2.1                              XQueryExtension(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...