/usr/share/pyshared/xcb/xc_misc.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 | #
# This file generated automatically from xc_misc.xml by py_client.py.
# Edit at your peril.
#
import xcb
import cStringIO
from struct import pack, unpack_from
from array import array
MAJOR_VERSION = 1
MINOR_VERSION = 1
key = xcb.ExtensionKey('XC-MISC')
class GetVersionCookie(xcb.Cookie):
pass
class GetVersionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.server_major_version, self.server_minor_version,) = unpack_from('xx2x4xHH', parent, offset)
class GetXIDRangeCookie(xcb.Cookie):
pass
class GetXIDRangeReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.start_id, self.count,) = unpack_from('xx2x4xII', parent, offset)
class GetXIDListCookie(xcb.Cookie):
pass
class GetXIDListReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.ids_len,) = unpack_from('xx2x4xI20x', parent, offset)
offset += 32
self.ids = xcb.List(parent, offset, self.ids_len, 'I', 4)
class xc_miscExtension(xcb.Extension):
def GetVersion(self, client_major_version, client_minor_version):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xHH', client_major_version, client_minor_version))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
GetVersionCookie(),
GetVersionReply)
def GetVersionUnchecked(self, client_major_version, client_minor_version):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xHH', client_major_version, client_minor_version))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
GetVersionCookie(),
GetVersionReply)
def GetXIDRange(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, True),
GetXIDRangeCookie(),
GetXIDRangeReply)
def GetXIDRangeUnchecked(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, False),
GetXIDRangeCookie(),
GetXIDRangeReply)
def GetXIDList(self, count):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', count))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, True),
GetXIDListCookie(),
GetXIDListReply)
def GetXIDListUnchecked(self, count):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', count))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, False),
GetXIDListCookie(),
GetXIDListReply)
_events = {
}
_errors = {
}
xcb._add_ext(key, xc_miscExtension, _events, _errors)
|