diff options
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index 2dcfa58..3af287a 100644 --- a/src/types.h +++ b/src/types.h @@ -47,6 +47,11 @@ typedef struct fastd_tristate { bool state : 1; } fastd_tristate_t; +static const fastd_tristate_t fastd_tristate_true = {true, true}; +static const fastd_tristate_t fastd_tristate_false = {true, false}; +static const fastd_tristate_t fastd_tristate_undef = {false, false}; + + typedef enum fastd_mode { MODE_TAP, MODE_TUN, |