/usr/share/pyshared/xcb/res.py is in python-xpyb 1.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | #
# This file generated automatically from res.xml by py_client.py.
# Edit at your peril.
#
import xcb
import cStringIO
from struct import pack, unpack_from
from array import array
import xproto
MAJOR_VERSION = 1
MINOR_VERSION = 0
key = xcb.ExtensionKey('X-Resource')
class Client(xcb.Struct):
def __init__(self, parent, offset, size):
xcb.Struct.__init__(self, parent, offset, size)
(self.resource_base, self.resource_mask,) = unpack_from('II', parent, offset)
class Type(xcb.Struct):
def __init__(self, parent, offset, size):
xcb.Struct.__init__(self, parent, offset, size)
(self.resource_type, self.count,) = unpack_from('II', parent, offset)
class QueryVersionCookie(xcb.Cookie):
pass
class QueryVersionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.server_major, self.server_minor,) = unpack_from('xx2x4xHH', parent, offset)
class QueryClientsCookie(xcb.Cookie):
pass
class QueryClientsReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.num_clients,) = unpack_from('xx2x4xI20x', parent, offset)
offset += 32
self.clients = xcb.List(parent, offset, self.num_clients, Client, 8)
class QueryClientResourcesCookie(xcb.Cookie):
pass
class QueryClientResourcesReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.num_types,) = unpack_from('xx2x4xI20x', parent, offset)
offset += 32
self.types = xcb.List(parent, offset, self.num_types, Type, 8)
class QueryClientPixmapBytesCookie(xcb.Cookie):
pass
class QueryClientPixmapBytesReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.bytes, self.bytes_overflow,) = unpack_from('xx2x4xII', parent, offset)
class resExtension(xcb.Extension):
def QueryVersion(self, client_major, client_minor):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBB', client_major, client_minor))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
QueryVersionCookie(),
QueryVersionReply)
def QueryVersionUnchecked(self, client_major, client_minor):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBB', client_major, client_minor))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
QueryVersionCookie(),
QueryVersionReply)
def QueryClients(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, True),
QueryClientsCookie(),
QueryClientsReply)
def QueryClientsUnchecked(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, False),
QueryClientsCookie(),
QueryClientsReply)
def QueryClientResources(self, xid):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', xid))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, True),
QueryClientResourcesCookie(),
QueryClientResourcesReply)
def QueryClientResourcesUnchecked(self, xid):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', xid))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, False),
QueryClientResourcesCookie(),
QueryClientResourcesReply)
def QueryClientPixmapBytes(self, xid):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', xid))
return self.send_request(xcb.Request(buf.getvalue(), 3, False, True),
QueryClientPixmapBytesCookie(),
QueryClientPixmapBytesReply)
def QueryClientPixmapBytesUnchecked(self, xid):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', xid))
return self.send_request(xcb.Request(buf.getvalue(), 3, False, False),
QueryClientPixmapBytesCookie(),
QueryClientPixmapBytesReply)
_events = {
}
_errors = {
}
xcb._add_ext(key, resExtension, _events, _errors)
|