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.



XRes(3)                                                                                              XRes(3)



NAME
       XRes - X-Resource extension client library

SYNOPSIS
       #include <X11/extensions/XRes.h>

       typedef struct {
            XID            resource_base;
            XID            resource_mask;
       } XResClient;

       typedef struct {
            Atom           resource_type;
            unsigned int   count;
       } XResType;

       Bool XResQueryExtension(Display *dpy, int *event_basep, int *error_basep);

       Status XResQueryVersion(Display *dpy, int *major_versionp, int *minor_versionp);

       Status XResQueryClients(Display *dpy, int *num_clients, XResClient **clients);

       Status XResQueryClientResources(Display *dpy, XID xid, int *num_types, XResType **types);

       Status XResQueryClientPixmapBytes(Display *dpy, XID xid, unsigned long *bytes);


DESCRIPTION
       X-Resource  is  an  extension  that  allows a client to query the X server about its usage of various
       resources. It should not be mixed with the X resource database access functions.

       XResQueryExtension returns True if the XRes extension is available on the given  display.   A  client
       must  call XResQueryExtension before calling any other XRes function in order to negotiate a compati-ble compatible
       ble protocol version; otherwise the client will get undefined behavior (XRes may or may not work).

       XResQueryVersion returns True if the request succeeded; the values of the major  and  minor  protocol
       versions supported by the server are returned in major_versionp and minor_versionp .


       XResQueryClients  fills  a  list  of  clients of the given display. For each client it returns in the
       XResClient structure a mask and a base value of the resources used by these clients.  Returns True on
       success or False on failure.

       XResQueryClientResources fills a list of XResType structures, indicating for each resource type allo-cated allocated
       cated by the client its name (as an Atom) and  the  number  of  resources  of  this  type  allocated.
       Returns True on success or False on failure.

       XresQueryClientPixmapBytes gives, for resources of type PIXMAP the total number of bytes allocated in
       the X server by the given client.  Returns True on success or False on failure.

ERRORS
       XResQueryClientResources and XResQueryClientPixmapBytes will return BadValue  if  passed  an  illegal
       client identifier.

SEE ALSO
       X(7)

AUTHOR
       Mark Vojkovich, originally for The XFree86 Project Inc.

STABILITY
       This  API  is considered as experimental. The XRes library major revision may be incremented whenever
       incompatible changes are done to the API without notice. Use with care.



X Version 11                                    libXres 1.0.3                                        XRes(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...