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