summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-25 11:19:27 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-25 11:19:27 +0200
commit8345c5c33fbed90a1d79fcd0756ade66aca2fcc9 (patch)
tree39b6844319f16969a26cbe6643df251a80e5272b /src/types.h
parent8d2c058a19de01d7513012fe51066784c14fdbe4 (diff)
downloadfastd-8345c5c33fbed90a1d79fcd0756ade66aca2fcc9.tar
fastd-8345c5c33fbed90a1d79fcd0756ade66aca2fcc9.zip
Introduce tristate type
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h7
1 files changed, 7 insertions, 0 deletions
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,