@@ -20,6 +20,17 @@ typedef enum {
} bool_t;
+/**
+ * A tri-state boolean. The possible values are
+ * TRI_FALSE, TRI_TRUE, TRI_UNDEFINED.
+ */
+typedef enum {
+ TRI_UNDEFINED = -1,
+ TRI_FALSE = 0,
+ TRI_TRUE = 1
+} tri_t;
+
/** @def C_DECL_BEGIN
* This macro can be used instead standard preprocessor
* directive like this: