dol: initial dol commit
[jump.git] / dol / src / dol / visitor / rtems / lib / traffic_shaping.h
diff --git a/dol/src/dol/visitor/rtems/lib/traffic_shaping.h b/dol/src/dol/visitor/rtems/lib/traffic_shaping.h
new file mode 100644 (file)
index 0000000..2ff49b8
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef TRAFFIC_SHAPING_H
+#define TRAFFIC_SHAPING_H
+
+#include "scratch_queue.h"
+
+typedef struct _queue_wrapper {
+    SCRATCH_QUEUE_SHAPER *q;
+    int hasData;
+    QUEUE_SEMAPHORE sem_terminate;
+} QUEUE_WRAPPER;
+
+#define @NUMBER_OF_QUEUES@ // generated
+#define @NUMBER_OF_SINKS@  // generated
+
+rtems_task shaping_init(rtems_task_argument argument);
+
+#endif