pure sdk for main

This commit is contained in:
divadiow
2025-08-27 09:51:58 +01:00
parent f0d033f1c9
commit 0571416e7c
3283 changed files with 1577720 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef __OS_EVENT_H
#define __OS_EVENT_H
#ifdef __cplusplus
extern "C" {
#endif
enum OS_EVENT_WMODE{
OS_EVENT_WMODE_AND = BIT(0), //all bit has been set.
OS_EVENT_WMODE_OR = BIT(1), //any bit has been set.
OS_EVENT_WMODE_CLEAR = BIT(2), //clear bit after exit.
};
struct os_event {
uint32 magic;
void *hdl;
};
int32 os_event_init(struct os_event *evt);
int32 os_event_del(struct os_event *evt);
int32 os_event_set(struct os_event *evt, uint32 flags, uint32 *rflags);
int32 os_event_clear(struct os_event *evt, uint32 flags, uint32 *rflags);
int32 os_event_get(struct os_event *evt, uint32 *rflags);
int32 os_event_wait(struct os_event *evt, uint32 flags, uint32 *rflags, uint32 mode, int32 timeout);
#ifdef __cplusplus
}
#endif
#endif