dol: initial dol commit
[jump.git] / dol / examples / example5 / src / consumer.h
diff --git a/dol/examples/example5/src/consumer.h b/dol/examples/example5/src/consumer.h
new file mode 100644 (file)
index 0000000..0daf317
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef CONSUMER_H
+#define CONSUMER_H
+
+#include <dol.h>
+#include "global.h"
+
+#define PORT_OUTPUT_COEFFICIENTS "output_coefficients"
+
+typedef struct _local_states
+{
+  int index;
+  ComplexNumber coeffs[NUMBER_OF_FFT_POINTS];
+} Consumer_State;
+
+void consumer_init(DOLProcess *);
+int consumer_fire(DOLProcess *);
+
+#endif