summaryrefslogtreecommitdiffhomepage
path: root/DDK
diff options
context:
space:
mode:
authorAmlal <amlal@zka.com>2024-07-23 12:02:10 +0200
committerAmlal <amlal@zka.com>2024-07-23 12:02:10 +0200
commit274cba18b8f1c255ddcff2f5c14aab4d0c846820 (patch)
treeaa56d2223c79d447b85a2bfefdbaab90b25fc8fe /DDK
parent8eee31685e4334415870bb00b11b6b0d29821f10 (diff)
[IMP] User class and current user global.
[REMOVE] ApplicationInterface struct. [IMP] DDK_STATUS_STRUCT data structure for driver events. Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'DDK')
-rw-r--r--DDK/KernelStd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/DDK/KernelStd.h b/DDK/KernelStd.h
index aef1785f..af7bb306 100644
--- a/DDK/KernelStd.h
+++ b/DDK/KernelStd.h
@@ -11,14 +11,26 @@
#if defined(__cplusplus)
#define DK_EXTERN extern "C"
#define nil nullptr
+#define DK_FINAL final
#else
#define DK_EXTERN extern
#define nil ((void*)0)
+#define DK_FINAL
#endif // defined(__cplusplus)
#include <stdint.h>
#include <stddef.h>
+struct DDK_STATUS_STRUCT;
+
+/// \brief DDK status structure (__at_enable, __at_disable...)
+struct DDK_STATUS_STRUCT DK_FINAL
+{
+ int32_t action_id;
+ int32_t issuer_id;
+ int32_t group_id;
+};
+
/// @brief Call kernel (interrupt 0x33)
/// @param kernelRpcName
/// @param cnt number of elements in **dat**