From 3c233e380524d6842d396fd0a1fb9aeacf34d35f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 28 Aug 2024 08:00:52 +0200 Subject: [IMP] Add ipc_construct_packet function to IPC protocol implementation. [IMP] Update Endian enum to match the one from the IPC protocol. [IMP] MUST_PASS works in debug only now. Signed-off-by: Amlal El Mahrouss --- dev/SCI/scm_core.hxx | 2 +- dev/SCI/scm_xpcom.idl | 36 ++++++++++++++++++++++++++++++++++++ dev/SCI/scm_xpcom.inl | 30 ------------------------------ 3 files changed, 37 insertions(+), 31 deletions(-) create mode 100644 dev/SCI/scm_xpcom.idl delete mode 100644 dev/SCI/scm_xpcom.inl (limited to 'dev/SCI') diff --git a/dev/SCI/scm_core.hxx b/dev/SCI/scm_core.hxx index 5b4c26f4..ef0a8b5b 100644 --- a/dev/SCI/scm_core.hxx +++ b/dev/SCI/scm_core.hxx @@ -14,7 +14,7 @@ Purpose: Base code of SCM. #define protocol class #define clsid(X) -#warning ! you may be using the clang version of the newos kit, please be cautious that some thing mayn't be present. ! +#warning ! You may be using the clang version of the ZKA kit, please be cautious that some thing mayn't be present. ! #endif // !__NDK__ // Interfaces are divided between classes. diff --git a/dev/SCI/scm_xpcom.idl b/dev/SCI/scm_xpcom.idl new file mode 100644 index 00000000..1fdbd6c9 --- /dev/null +++ b/dev/SCI/scm_xpcom.idl @@ -0,0 +1,36 @@ +/* ------------------------------------------- + +Copyright ZKA Technologies. + +File: rt.internal.inl +Purpose: Base code of SCM. + +------------------------------------------- */ + +/// @internal + +#ifndef __NDK__ +#define object class +#define protocol class +#define interface private +#define interface_method +#define CONST const +#define CHAR char +#define INT32 __INT32_TYPE__ +#define SIZE_T __SIZE_TYPE__ +#define _Output +#define _Input +#define clsid(X) + +#warning ! You may be using the clang version of the ZKA kit, please be cautious that some thing mayn't be present. ! +#endif // !__NDK__ + +protocol IPXCOMSocket; + +clsid("0943A614-0201-4107-8F8D-E909DF7F53C9") +protocol IPXCOMSocket +{ +interface: + interface_method INT32 SendMessage(_Input CONST CHAR* bytes, _Input SIZE_T bytes_size); + interface_method INT32 RecvMessage(_Output CONST CHAR** bytes_in, _Input SIZE_T bytes_size); +}; diff --git a/dev/SCI/scm_xpcom.inl b/dev/SCI/scm_xpcom.inl deleted file mode 100644 index 9c63f041..00000000 --- a/dev/SCI/scm_xpcom.inl +++ /dev/null @@ -1,30 +0,0 @@ -/* ------------------------------------------- - -Copyright ZKA Technologies. - -File: rt.internal.inl -Purpose: Base code of SCM. - -------------------------------------------- */ - -/// @internal - -#ifndef __NDK__ -#define object class -#define protocol class -#define interface private -#define method -#define clsid(X) - -#warning ! you may be using the clang version of the newos kit, please be cautious that some thing mayn't be present. ! -#endif // !__NDK__ - -protocol IPXCOMSocket; - -clsid("0943A614-0201-4107-8F8D-E909DF7F53C9") -protocol IPXCOMSocket -{ -interface: - method SInt32 SendMessage(const Char* bytes, SizeT bytes_size); - method SInt32 RecvMessage(_Output const Char** bytes_in, _Input SizeT bytes_size); -}; -- cgit v1.2.3