dol: initial dol commit
[jump.git] / dol / examples / exampleproducerconsumer / src / producer.h
diff --git a/dol/examples/exampleproducerconsumer/src/producer.h b/dol/examples/exampleproducerconsumer/src/producer.h
new file mode 100644 (file)
index 0000000..6668050
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef PRODUCER_H
+#define PRODUCER_H
+
+#include <dol.h>
+
+#define  PORT_OUTA "A"
+#define  PORT_OUTB "B"
+
+typedef struct _local_states {
+    int index;
+    int len;
+    char str[26];
+} Producer_State;
+
+void producer_init(DOLProcess *);
+int producer_fire(DOLProcess *);
+
+#endif