diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-07-25 11:19:27 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-07-25 11:19:27 +0200 |
commit | 8345c5c33fbed90a1d79fcd0756ade66aca2fcc9 (patch) | |
tree | 39b6844319f16969a26cbe6643df251a80e5272b /src | |
parent | 8d2c058a19de01d7513012fe51066784c14fdbe4 (diff) | |
download | fastd-8345c5c33fbed90a1d79fcd0756ade66aca2fcc9.tar fastd-8345c5c33fbed90a1d79fcd0756ade66aca2fcc9.zip |
Introduce tristate type
Diffstat (limited to 'src')
-rw-r--r-- | src/fastd.h | 1 | ||||
-rw-r--r-- | src/queue.h | 1 | ||||
-rw-r--r-- | src/types.h | 7 |
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, |