summaryrefslogtreecommitdiff
path: root/include/SDK/OS/OSSemaphore.h
diff options
context:
space:
mode:
authorMax <34987259+mparisi20@users.noreply.github.com>2020-10-27 23:02:12 -0400
committerGitHub <noreply@github.com>2020-10-27 23:02:12 -0400
commitf13fcff4a5f496e8bc1fa4ff759698d9ac37c478 (patch)
tree5b69a6a087620e6d533822b17c56483de7783ffc /include/SDK/OS/OSSemaphore.h
parent52139f47a6c4df33fda98b3be5b140cd48ab218d (diff)
parentf4dbe9a90d572a904d3e0c8b6dae3b120e47ca34 (diff)
Merge pull request #153 from mparisi20/master
decompile code_801DBE90.cpp
Diffstat (limited to 'include/SDK/OS/OSSemaphore.h')
-rw-r--r--include/SDK/OS/OSSemaphore.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/SDK/OS/OSSemaphore.h b/include/SDK/OS/OSSemaphore.h
new file mode 100644
index 0000000..46e7e03
--- /dev/null
+++ b/include/SDK/OS/OSSemaphore.h
@@ -0,0 +1,21 @@
+#ifndef POKEREVO_OSSEMAPHORE_H
+#define POKEREVO_OSSEMAPHORE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct OSSemaphore
+{
+ u8 unk0[0x10];
+} OSSemaphore;
+
+s32 OSSignalSemaphore(OSSemaphore* sem);
+void OSInitSemaphore(OSSemaphore* sem, s32 count);
+s32 OSWaitSemaphore(OSSemaphore* sem);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_OSSEMAPHORE_H