2ec0cd077af769b98b2ffba67c61432bd3b5db8e
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / pty_cmds.h
1 /*
2  * Acess2 User Core
3  * - By John Hodge (thePowersGang)
4  *
5  * acess/devices/pty_cmds.h
6  * - Defintions for 2D/3D command stream PTY output modes
7  */
8 #ifndef _ACESS_DEVICES_PTY_CMDS_H_
9 #define _ACESS_DEVICES_PTY_CMDS_H_
10
11 #include <stdint.h>
12
13 enum
14 {
15         PTY2D_CMD_NOP,
16         PTY2D_CMD_SETCURSORPOS,
17         PTY2D_CMD_SETCURSORBMP,
18         PTY2D_CMD_NEWSRF,
19         PTY2D_CMD_DELSRF,
20         PTY2D_CMD_BLIT,
21         PTY2D_CMD_SEND,
22         PTY2D_CMD_RECV,
23 };
24
25 struct ptycmd_header
26 {
27         uint8_t         cmd;
28         uint8_t         len_low;
29         uint16_t        len_hi;
30 } PACKED;
31
32 struct ptycmd_setcursorpos
33 {
34         struct ptycmd_header    hdr;
35         uint16_t        x;
36         uint16_t        y;
37 } PACKED;
38
39 struct ptycmd_setcursorbmp
40 {
41         struct ptycmd_header    hdr;
42         uint16_t        w;
43         uint16_t        h;
44         char    data[];
45 } PACKED;
46
47 #endif
48

UCC git Repository :: git.ucc.asn.au