XRes.h revision 47e89262
1/* 2 Copyright (c) 2002 XFree86 Inc 3*/ 4 5#ifndef _XRES_H 6#define _XRES_H 7 8#include <X11/Xfuncproto.h> 9 10typedef struct { 11 XID resource_base; 12 XID resource_mask; 13} XResClient; 14 15typedef struct { 16 Atom resource_type; 17 unsigned int count; 18} XResType; 19 20_XFUNCPROTOBEGIN 21 22 23Bool XResQueryExtension ( 24 Display *dpy, 25 int *event_base_return, 26 int *error_base_return 27); 28 29Status XResQueryVersion ( 30 Display *dpy, 31 int *major_version_return, 32 int *minor_version_return 33); 34 35Status XResQueryClients ( 36 Display *dpy, 37 int *num_clients, 38 XResClient **clients 39); 40 41Status XResQueryClientResources ( 42 Display *dpy, 43 XID xid, 44 int *num_types, 45 XResType **types 46); 47 48Status XResQueryClientPixmapBytes ( 49 Display *dpy, 50 XID xid, 51 unsigned long *bytes 52); 53 54_XFUNCPROTOEND 55 56#endif /* _XRES_H */ 57