dol: initial dol commit
[jump.git] / dol / examples / example6 / src / filter.h
diff --git a/dol/examples/example6/src/filter.h b/dol/examples/example6/src/filter.h
new file mode 100644 (file)
index 0000000..a068113
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef FILTER_H
+#define FILTER_H
+
+#include <dol.h>
+
+#define PORT_INA  "inA"
+#define PORT_INB  "inB"
+#define PORT_OUTA "outA"
+#define PORT_OUTB "outB"
+
+typedef struct _local_states
+{
+  int firstiteration;
+  float inA, inB, out, zero, factor;
+} Filter_State;
+
+void filter_init(DOLProcess *);
+int filter_fire(DOLProcess *);
+
+#endif