summaryrefslogtreecommitdiff
path: root/libco.h
diff options
context:
space:
mode:
authoraliaspider2014-12-08 22:56:33 +0100
committeraliaspider2014-12-08 22:56:33 +0100
commit365077772d3d8d5d479febd0388d7e74ef08d508 (patch)
tree4021590cd2176f8e9d469ab3d620338e9ed85fda /libco.h
parent35e1e44a1107c73a3aaccb0eff44757c602afdac (diff)
downloadpicogpsp-365077772d3d8d5d479febd0388d7e74ef08d508.tar.gz
picogpsp-365077772d3d8d5d479febd0388d7e74ef08d508.tar.bz2
picogpsp-365077772d3d8d5d479febd0388d7e74ef08d508.zip
start implementing the libretro interface. (not working yet)
Diffstat (limited to 'libco.h')
-rw-r--r--libco.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/libco.h b/libco.h
new file mode 100644
index 0000000..1464804
--- /dev/null
+++ b/libco.h
@@ -0,0 +1,37 @@
+/*
+ libco
+ version: 0.16 (2010-12-24)
+ license: public domain
+*/
+
+#ifndef LIBCO_H
+#define LIBCO_H
+
+#ifdef LIBCO_C
+ #ifdef LIBCO_MP
+ #define thread_local __thread
+ #else
+ #define thread_local
+ #endif
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void* cothread_t;
+
+cothread_t co_active(void);
+
+cothread_t co_create(unsigned int, void (*)(void));
+
+void co_delete(cothread_t);
+
+void co_switch(cothread_t);
+
+#ifdef __cplusplus
+}
+#endif
+
+/* ifndef LIBCO_H */
+#endif