mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Changed "struct KernelCallback" to be an union
This commit is contained in:
parent
a265cb59c8
commit
06aa2bb31b
7
DAPI.hpp
7
DAPI.hpp
@ -119,8 +119,10 @@ enum CallbackReason
|
||||
InputReason,
|
||||
};
|
||||
|
||||
struct KernelCallback
|
||||
union KernelCallback
|
||||
{
|
||||
struct
|
||||
{
|
||||
CallbackReason Reason;
|
||||
void *RawPtr;
|
||||
unsigned long RawData;
|
||||
@ -160,6 +162,7 @@ struct KernelCallback
|
||||
} Fetch;
|
||||
} DiskCallback;
|
||||
|
||||
/** @brief When the kernel wants to get mouse position / keyboard key */
|
||||
struct
|
||||
{
|
||||
struct
|
||||
@ -180,6 +183,8 @@ struct KernelCallback
|
||||
{
|
||||
unsigned char Vector;
|
||||
} InterruptInfo;
|
||||
};
|
||||
unsigned long raw;
|
||||
} __attribute__((packed));
|
||||
|
||||
#endif // !__FENNIX_DRIVER_API_H__
|
||||
|
4
Fex.hpp
4
Fex.hpp
@ -58,7 +58,7 @@ struct Fex
|
||||
int (*EntryPoint)(void *);
|
||||
} __attribute__((packed));
|
||||
|
||||
struct KernelCallback;
|
||||
union KernelCallback;
|
||||
|
||||
struct FexExtended
|
||||
{
|
||||
@ -73,7 +73,7 @@ struct FexExtended
|
||||
enum FexDriverType Type : 4;
|
||||
enum FexDriverInputTypes TypeFlags : 4;
|
||||
bool OverrideOnConflict : 1;
|
||||
int (*Callback)(struct KernelCallback *);
|
||||
int (*Callback)(union KernelCallback *);
|
||||
|
||||
struct DriverBind
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user