dol: initial dol commit
[jump.git] / dol / examples / example1 / src / quicksort.h
diff --git a/dol/examples/example1/src/quicksort.h b/dol/examples/example1/src/quicksort.h
new file mode 100644 (file)
index 0000000..09227ed
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef QUICKSORT_H
+#define QUICKSORT_H
+
+#include <dol.h>
+#include "global.h"
+
+#define PORT_IN1 1
+#define PORT_IN2 2
+#define PORT_OUT1 3
+#define PORT_OUT2 4
+
+typedef struct _local_states {
+    int index;
+    int * arr1;
+    int * arr2;
+} Quicksort_State;
+
+void quicksort_init(DOLProcess *);
+int quicksort_fire(DOLProcess *);
+
+#endif