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