class ChangeProperty(rq.Request): _request = rq.Struct( rq.Opcode(18), rq.Set('mode', 1, (X.PropModeReplace, X.PropModePrepend, X.PropModeAppend)), rq.RequestLength(), rq.Window('window'), rq.Card32('property'), rq.Card32('type'), rq.Format('data', 1), rq.Pad(3), rq.LengthOf('data', 4), rq.PropertyData('data'), )
class XIChangeProperty(rq.Request): _request = rq.Struct( rq.Card8('opcode'), rq.Opcode(57), rq.RequestLength(), DEVICEID('deviceid'), rq.Card8('mode'), rq.Format('value', 1), rq.Card32('property'), rq.Card32('type'), rq.LengthOf('value', 4), rq.PropertyData('value'), )
class ChangeOutputProperty(rq.Request): _request = rq.Struct( rq.Card8('opcode'), rq.Opcode(13), rq.RequestLength(), rq.Card32('output'), rq.Card32('property'), rq.Card32('type'), rq.Format('value', 1), rq.Card8('mode'), rq.Pad(2), rq.LengthOf('value', 4), rq.PropertyData('value'), )
class XIGetProperty(rq.ReplyRequest): _request = rq.Struct( rq.Card8('opcode'), rq.Opcode(59), rq.RequestLength(), DEVICEID('deviceid'), rq.Card8('delete'), rq.Pad(1), rq.Card32('property'), rq.Card32('type'), rq.Card32('offset'), rq.Card32('length'), ) _reply = rq.Struct(rq.ReplyCode(), rq.Pad(1), rq.Card16('sequence_number'), rq.ReplyLength(), rq.Card32('type'), rq.Card32('bytes_after'), rq.LengthOf('value', 4), rq.Format('value', 1), rq.Pad(11), rq.PropertyData('value'))
class GetProperty(rq.ReplyRequest): _request = rq.Struct( rq.Opcode(20), rq.Bool('delete'), rq.RequestLength(), rq.Window('window'), rq.Card32('property'), rq.Card32('type'), rq.Card32('long_offset'), rq.Card32('long_length'), ) _reply = rq.Struct( rq.ReplyCode(), rq.Format('value', 1), rq.Card16('sequence_number'), rq.ReplyLength(), rq.Card32('property_type'), rq.Card32('bytes_after'), rq.LengthOf('value', 4), rq.Pad(12), rq.PropertyData('value'), )