summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fastd.h1
-rw-r--r--src/queue.h1
-rw-r--r--src/types.h7
3 files changed, 7 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h
index e3aa76b..474fd1f 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -34,7 +34,6 @@
#include <linux/if_ether.h>
#include <netinet/in.h>
#include <stdarg.h>
-#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
diff --git a/src/queue.h b/src/queue.h
index 5b68907..c74fd55 100644
--- a/src/queue.h
+++ b/src/queue.h
@@ -29,7 +29,6 @@
#include "types.h"
-#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
diff --git a/src/types.h b/src/types.h
index 7cec771..b1026b5 100644
--- a/src/types.h
+++ b/src/types.h
@@ -36,6 +36,13 @@
#include <config.h>
#include <version.h>
+#include <stdbool.h>
+
+
+typedef struct fastd_tristate {
+ bool set : 1;
+ bool state : 1;
+} fastd_tristate_t;
typedef enum fastd_mode {
MODE_TAP,