X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=d2e8e91ece2238ddac8b42e2f35f5d8502bd50fb;hb=12ae31ebf4c6e129ab2e5b8e8dfa190265166446;hp=b9661bcf580a569cef0df0bdbc440ab3b9579a8e;hpb=c7acbe49842c871244d76ce9dd7e4e9e70ec3a97;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 {