summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndiscvt/inf.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2003-12-11 22:38:14 +0000
committerwpaul <wpaul@FreeBSD.org>2003-12-11 22:38:14 +0000
commit4b660977b3a9c1a1fc5c78ebbcea353f5051e59f (patch)
tree7c2d5abaacdb24db0fe7ad5dd49024bfe7023096 /usr.sbin/ndiscvt/inf.h
parent7e1ac581496c0d5c9235e96f48e6664b7783122e (diff)
downloadFreeBSD-src-4b660977b3a9c1a1fc5c78ebbcea353f5051e59f.zip
FreeBSD-src-4b660977b3a9c1a1fc5c78ebbcea353f5051e59f.tar.gz
Commit the ndiscvt(8) utility too. (Missed it in the last import.)
Diffstat (limited to 'usr.sbin/ndiscvt/inf.h')
-rw-r--r--usr.sbin/ndiscvt/inf.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/usr.sbin/ndiscvt/inf.h b/usr.sbin/ndiscvt/inf.h
new file mode 100644
index 0000000..8d0b0c1
--- /dev/null
+++ b/usr.sbin/ndiscvt/inf.h
@@ -0,0 +1,61 @@
+/*
+ * $Id: inf.h,v 1.3 2003/11/30 21:58:16 winter Exp $
+ *
+ * $FreeBSD$
+ */
+
+#define W_MAX 16
+
+struct section {
+ const char * name;
+
+ TAILQ_ENTRY(section) link;
+};
+TAILQ_HEAD(section_head, section);
+
+struct assign {
+ struct section *section;
+
+ const char * key;
+ const char * vals[W_MAX];
+
+ TAILQ_ENTRY(assign) link;
+};
+TAILQ_HEAD(assign_head, assign);
+
+struct reg {
+ struct section *section;
+
+ const char * root;
+ const char * subkey;
+ const char * key;
+ u_int flags;
+ const char * value;
+
+ TAILQ_ENTRY(reg) link;
+};
+TAILQ_HEAD(reg_head, reg);
+
+#define FLG_ADDREG_TYPE_SZ 0x00000000
+#define FLG_ADDREG_BINVALUETYPE 0x00000001
+#define FLG_ADDREG_NOCLOBBER 0x00000002
+#define FLG_ADDREG_DELVAL 0x00000004
+#define FLG_ADDREG_APPEND 0x00000008
+#define FLG_ADDREG_KEYONLY 0x00000010
+#define FLG_ADDREG_OVERWRITEONLY 0x00000020
+#define FLG_ADDREG_64BITKEY 0x00001000
+#define FLG_ADDREG_KEYONLY_COMMON 0x00002000
+#define FLG_ADDREG_32BITKEY 0x00004000
+#define FLG_ADDREG_TYPE_MULTI_SZ 0x00010000
+#define FLG_ADDREG_TYPE_EXPAND_SZ 0x00020000
+#define FLG_ADDREG_TYPE_DWORD 0x00010001
+#define FLG_ADDREG_TYPE_NONE 0x00020001
+
+extern void section_add (const char *);
+extern void assign_add (const char *);
+extern void define_add (const char *);
+extern void regkey_add (const char *);
+
+extern void push_word (const char *);
+extern void clear_words (void);
+extern int inf_parse (FILE *, FILE *);
OpenPOWER on IntegriCloud