/usr/share/pyshared/xcb/xf86dri.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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | #
# This file generated automatically from xf86dri.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 = 4
MINOR_VERSION = 1
key = xcb.ExtensionKey('XFree86-DRI')
class DrmClipRect(xcb.Struct):
def __init__(self, parent, offset, size):
xcb.Struct.__init__(self, parent, offset, size)
(self.x1, self.y1, self.x2, self.x3,) = unpack_from('hhhh', parent, offset)
class QueryVersionCookie(xcb.Cookie):
pass
class QueryVersionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.dri_major_version, self.dri_minor_version, self.dri_minor_patch,) = unpack_from('xx2x4xHHI', parent, offset)
class QueryDirectRenderingCapableCookie(xcb.Cookie):
pass
class QueryDirectRenderingCapableReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.is_capable,) = unpack_from('xx2x4xB', parent, offset)
class OpenConnectionCookie(xcb.Cookie):
pass
class OpenConnectionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.sarea_handle_low, self.sarea_handle_high, self.bus_id_len,) = unpack_from('xx2x4xIII12x', parent, offset)
offset += 32
self.bus_id = xcb.List(parent, offset, self.bus_id_len, 'b', 1)
class GetClientDriverNameCookie(xcb.Cookie):
pass
class GetClientDriverNameReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.client_driver_major_version, self.client_driver_minor_version, self.client_driver_patch_version, self.client_driver_name_len,) = unpack_from('xx2x4xIIII8x', parent, offset)
offset += 32
self.client_driver_name = xcb.List(parent, offset, self.client_driver_name_len, 'b', 1)
class CreateContextCookie(xcb.Cookie):
pass
class CreateContextReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.hw_context,) = unpack_from('xx2x4xI', parent, offset)
class CreateDrawableCookie(xcb.Cookie):
pass
class CreateDrawableReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.hw_drawable_handle,) = unpack_from('xx2x4xI', parent, offset)
class GetDrawableInfoCookie(xcb.Cookie):
pass
class GetDrawableInfoReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.drawable_table_index, self.drawable_table_stamp, self.drawable_origin_X, self.drawable_origin_Y, self.drawable_size_W, self.drawable_size_H, self.num_clip_rects, self.back_x, self.back_y, self.num_back_clip_rects,) = unpack_from('xx2x4xIIhhhhIhhI', parent, offset)
offset += 36
self.clip_rects = xcb.List(parent, offset, self.num_clip_rects, DrmClipRect, 8)
offset += len(self.clip_rects.buf())
offset += xcb.type_pad(8, offset)
self.back_clip_rects = xcb.List(parent, offset, self.num_back_clip_rects, DrmClipRect, 8)
class GetDeviceInfoCookie(xcb.Cookie):
pass
class GetDeviceInfoReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.framebuffer_handle_low, self.framebuffer_handle_high, self.framebuffer_origin_offset, self.framebuffer_size, self.framebuffer_stride, self.device_private_size,) = unpack_from('xx2x4xIIIIII', parent, offset)
offset += 32
self.device_private = xcb.List(parent, offset, self.device_private_size, 'I', 4)
class AuthConnectionCookie(xcb.Cookie):
pass
class AuthConnectionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.authenticated,) = unpack_from('xx2x4xI', parent, offset)
class xf86driExtension(xcb.Extension):
def QueryVersion(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
QueryVersionCookie(),
QueryVersionReply)
def QueryVersionUnchecked(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
QueryVersionCookie(),
QueryVersionReply)
def QueryDirectRenderingCapable(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, True),
QueryDirectRenderingCapableCookie(),
QueryDirectRenderingCapableReply)
def QueryDirectRenderingCapableUnchecked(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, False),
QueryDirectRenderingCapableCookie(),
QueryDirectRenderingCapableReply)
def OpenConnection(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, True),
OpenConnectionCookie(),
OpenConnectionReply)
def OpenConnectionUnchecked(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, False),
OpenConnectionCookie(),
OpenConnectionReply)
def CloseConnectionChecked(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 3, True, True),
xcb.VoidCookie())
def CloseConnection(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 3, True, False),
xcb.VoidCookie())
def GetClientDriverName(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 4, False, True),
GetClientDriverNameCookie(),
GetClientDriverNameReply)
def GetClientDriverNameUnchecked(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 4, False, False),
GetClientDriverNameCookie(),
GetClientDriverNameReply)
def CreateContext(self, screen, visual, context):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIII', screen, visual, context))
return self.send_request(xcb.Request(buf.getvalue(), 5, False, True),
CreateContextCookie(),
CreateContextReply)
def CreateContextUnchecked(self, screen, visual, context):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIII', screen, visual, context))
return self.send_request(xcb.Request(buf.getvalue(), 5, False, False),
CreateContextCookie(),
CreateContextReply)
def DestroyContextChecked(self, screen, context):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, context))
return self.send_request(xcb.Request(buf.getvalue(), 6, True, True),
xcb.VoidCookie())
def DestroyContext(self, screen, context):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, context))
return self.send_request(xcb.Request(buf.getvalue(), 6, True, False),
xcb.VoidCookie())
def CreateDrawable(self, screen, drawable):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, drawable))
return self.send_request(xcb.Request(buf.getvalue(), 7, False, True),
CreateDrawableCookie(),
CreateDrawableReply)
def CreateDrawableUnchecked(self, screen, drawable):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, drawable))
return self.send_request(xcb.Request(buf.getvalue(), 7, False, False),
CreateDrawableCookie(),
CreateDrawableReply)
def DestroyDrawableChecked(self, screen, drawable):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, drawable))
return self.send_request(xcb.Request(buf.getvalue(), 8, True, True),
xcb.VoidCookie())
def DestroyDrawable(self, screen, drawable):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, drawable))
return self.send_request(xcb.Request(buf.getvalue(), 8, True, False),
xcb.VoidCookie())
def GetDrawableInfo(self, screen, drawable):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, drawable))
return self.send_request(xcb.Request(buf.getvalue(), 9, False, True),
GetDrawableInfoCookie(),
GetDrawableInfoReply)
def GetDrawableInfoUnchecked(self, screen, drawable):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, drawable))
return self.send_request(xcb.Request(buf.getvalue(), 9, False, False),
GetDrawableInfoCookie(),
GetDrawableInfoReply)
def GetDeviceInfo(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 10, False, True),
GetDeviceInfoCookie(),
GetDeviceInfoReply)
def GetDeviceInfoUnchecked(self, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', screen))
return self.send_request(xcb.Request(buf.getvalue(), 10, False, False),
GetDeviceInfoCookie(),
GetDeviceInfoReply)
def AuthConnection(self, screen, magic):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, magic))
return self.send_request(xcb.Request(buf.getvalue(), 11, False, True),
AuthConnectionCookie(),
AuthConnectionReply)
def AuthConnectionUnchecked(self, screen, magic):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', screen, magic))
return self.send_request(xcb.Request(buf.getvalue(), 11, False, False),
AuthConnectionCookie(),
AuthConnectionReply)
_events = {
}
_errors = {
}
xcb._add_ext(key, xf86driExtension, _events, _errors)
|