summaryrefslogtreecommitdiff
path: root/include/SDK/OS/OSSemaphore.h
diff options
context:
space:
mode:
authorMax <mparisi@stevens.edu>2020-10-27 16:13:32 -0400
committerMax <mparisi@stevens.edu>2020-10-27 16:13:32 -0400
commit126972af1a4ff9084cd48f9c57eb07f3951e5086 (patch)
tree55ac7ff81ee2656da6542fb2700452a15436a77b /include/SDK/OS/OSSemaphore.h
parent69dd6927a2ec6791639065a70da615228ae362f6 (diff)
match up to func_801DC9CC
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