X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=a9768c419be17c2137e82466b1855d68d12966bb;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=b9661bcf580a569cef0df0bdbc440ab3b9579a8e;hpb=be5123fe1f4aa66b76ce8ef589362ad21b6bbf72;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index b9661bcf..a9768c41 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...) do{ if(gbSyscallDebugEnabled)Debug(str, x); }while(0) +#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 {