X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=AcessNative%2Fsyscalls.h;h=d2e8e91ece2238ddac8b42e2f35f5d8502bd50fb;hb=bbace1ebc0a53c9b8c561de6a3a2d9955fcdab0b;hp=b9661bcf580a569cef0df0bdbc440ab3b9579a8e;hpb=b0da731b2d89b9dd58de2c98eaf6218a41a21920;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index b9661bcf..d2e8e91e 100644 --- a/AcessNative/syscalls.h +++ b/AcessNative/syscalls.h @@ -5,6 +5,14 @@ #define SERVER_PORT 0xACE +#define SYSCALL_TRACE 1 + +#if SYSCALL_TRACE +#define SYSTRACE(str, x...) Debug(str, x) +#else +#define SYSTRACE(...) do{}while(0) +#endif + /* * Request format * @@ -27,13 +35,13 @@ typedef struct sRequestValue { } tRequestValue; typedef struct sRequestHeader { - uint16_t ClientID; - uint16_t CallID; //!< \see eSyscalls + uint32_t ClientID; uint32_t MessageLength; + uint16_t CallID; //!< \see eSyscalls uint16_t NParams; tRequestValue Params[]; -} tRequestHeader; +} __attribute__((packed)) tRequestHeader; enum eSyscalls {