mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-06-01 21:41:29 +00:00
b5c3a29f37
It can currently send a GetStatus request and get a response.
43 lines
827 B
C
43 lines
827 B
C
#ifndef DSIPROTO_H
|
|
#define DSIPROTO_H
|
|
|
|
#include <types.h>
|
|
|
|
typedef struct DSIRequestHeader {
|
|
Byte flags;
|
|
Byte command;
|
|
Word requestID;
|
|
LongWord writeOffset;
|
|
LongWord totalDataLength;
|
|
LongWord reserved;
|
|
} DSIRequestHeader;
|
|
|
|
typedef struct DSIReplyHeader {
|
|
Byte flags;
|
|
Byte command;
|
|
Word requestID;
|
|
LongWord errorCode;
|
|
LongWord totalDataLength;
|
|
LongWord reserved;
|
|
} DSIReplyHeader;
|
|
|
|
#define DSI_HEADER_SIZE 16
|
|
|
|
/* flags values */
|
|
#define DSI_REQUEST 0
|
|
#define DSI_REPLY 1
|
|
|
|
/* DSI command codes */
|
|
#define DSICloseSession 1
|
|
#define DSICommand 2
|
|
#define DSIGetStatus 3
|
|
#define DSIOpenSession 4
|
|
#define DSITickle 5
|
|
#define DSIWrite 6
|
|
#define DSIAttention 8
|
|
|
|
/* The attention quantum supported by this implementation */
|
|
#define DSI_ATTENTION_QUANTUM 2
|
|
|
|
#endif
|