Remove the old dummynet directory and update the new code with the missing files...
[ipfw.git] / dummynet2 / include / sys / taskqueue.h
diff --git a/dummynet2/include/sys/taskqueue.h b/dummynet2/include/sys/taskqueue.h
new file mode 100644 (file)
index 0000000..f11d286
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef _SYS_TASKQUEUE_H_
+#define _SYS_TASKQUEUE_H_
+
+/*
+ * Remap taskqueue to direct calls
+ */
+struct task {
+       void (*func)(void);
+};
+#define taskqueue_enqueue(tq, ta)      (ta)->func()
+#define TASK_INIT(a,b,c,d) do {                                \
+       (a)->func = (void (*)(void))c; } while (0)
+
+#define taskqueue_create_fast(_a, _b, _c, _d)  NULL
+#define taskqueue_start_threads(_a, _b, _c, _d)
+
+#define        taskqueue_drain(_a, _b) /* XXX to be completed */
+#define        taskqueue_free(_a)      /* XXX to be completed */
+
+#define PRI_MIN                 (0)             /* Highest priority. */
+#define PRI_MIN_ITHD            (PRI_MIN)
+#define PI_NET                  (PRI_MIN_ITHD + 16)
+
+#endif /* !_SYS_TASKQUEUE_H_ */