Exemple #1
0
class KillClient(rq.Request):
    _request = rq.Struct(
        rq.Opcode(113),
        rq.Pad(1),
        rq.RequestLength(),
        rq.Resource('resource')
        )
Exemple #2
0
class DPMSForceLevel(rq.Request):
    _request = rq.Struct(
        rq.Card8('opcode'),
        rq.Opcode(6),
        rq.RequestLength(),
        rq.Resource('power_level', DPMSPowerLevel),
    )
Exemple #3
0
class XResourceError(XError):
    _fields = rq.Struct(
        rq.Card8('type'),  # Always 0
        rq.Card8('code'),
        rq.Card16('sequence_number'),
        rq.Resource('resource_id'),
        rq.Card16('minor_opcode'),
        rq.Card8('major_opcode'),
        rq.Pad(21))