35#import <Foundation/Foundation.h>
36#define OOALSTR(x) @""x
38#include <CoreFoundation/CoreFoundation.h>
39#define OOALSTR(x) CFSTR(x)
85#define kOOTCPPacket_RequestConnection OOALSTR("Request Connection")
95#define kOOTCPPacket_ApproveConnection OOALSTR("Approve Connection")
108#define kOOTCPPacket_RejectConnection OOALSTR("Reject Connection")
119#define kOOTCPPacket_CloseConnection OOALSTR("Close Connection")
131#define kOOTCPPacket_ConsoleOutput OOALSTR("Console Output")
137#define kOOTCPPacket_ClearConsole OOALSTR("Clear Console")
144#define kOOTCPPacket_ShowConsole OOALSTR("Show Console")
154#define kOOTCPPacket_NoteConfiguration OOALSTR("Note Configuration")
173#define kOOTCPPacket_NoteConfigurationChange OOALSTR("Note Configuration Change")
182#define kOOTCPPacket_PerformCommand OOALSTR("Perform Command")
195#define kOOTCPPacket_RequestConfigurationValue OOALSTR("Request Configuration Value")
207#define kOOTCPPacket_Ping OOALSTR("Ping")
218#define kOOTCPPacket_Pong OOALSTR("Pong")
229#define kOOTCPPacketType OOALSTR("packet type")
237#define kOOTCPProtocolVersion OOALSTR("protocol version")
245#define kOOTCPOoliteVersion OOALSTR("Oolite version")
250#define kOOTCPMessage OOALSTR("message")
255#define kOOTCPConsoleIdentity OOALSTR("console identity")
274#define kOOTCPColorKey OOALSTR("color key")
281#define kOOTCPEmphasisRanges OOALSTR("emphasis ranges")
288#define kOOTCPConfiguration OOALSTR("configuration")
294#define kOOTCPRemovedConfigurationKeys OOALSTR("removed configuration keys")
300#define kOOTCPConfigurationKey OOALSTR("configuration key")
312#define OOTCP_ENCODE_VERSION(f, mj, mi) \
313 ((((f) << 16) & kOOTCPProtocolVersionFormatMask) | \
314 (((f) << 8) & kOOTCPProtocolVersionMajorMask) | \
315 ((mi) & kOOTCPProtocolVersionMinorMask))
317#define OOTCP_VERSION_FORMAT(v) (((v) & kOOTCPProtocolVersionFormatMask) >> 16)
318#define OOTCP_VERSION_MAJOR(v) (((v) & kOOTCPProtocolVersionMajorMask) >> 8)
319#define OOTCP_VERSION_MINOR(v) ((v) & kOOTCPProtocolVersionMinorMask)
#define OOTCP_ENCODE_VERSION(f, mj, mi)
@ kOOTCPProtocolVersionMajorMask
@ kOOTCPProtocolVersionMinorMask
@ kOOTCPProtocolVersionPListFormat
@ kOOTCPProtocolVersionFormatMask
@ kOOTCPProtocolVersion_1_1_0