summaryrefslogtreecommitdiffstats
path: root/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools.h b/tools.h
index 121f1a6..e18a58c 100644
--- a/tools.h
+++ b/tools.h
@@ -10,6 +10,13 @@
#define min2(a, b) (((a)<(b))?(a):(b))
+typedef enum {
+ PCILIB_TRISTATE_NO = 0,
+ PCILIB_TRISTATE_PARTIAL = 1,
+ PCILIB_TRISTATE_YES = 2
+} pcilib_tristate_t;
+
+
int pcilib_isnumber(const char *str);
int pcilib_isxnumber(const char *str);
int pcilib_isnumber_n(const char *str, size_t len);