]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/private.h
opt: new module to parse commandline options.
[ccan] / ccan / opt / private.h
diff --git a/ccan/opt/private.h b/ccan/opt/private.h
new file mode 100644 (file)
index 0000000..b1a1892
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef CCAN_OPT_PRIVATE_H
+#define CCAN_OPT_PRIVATE_H
+
+extern struct opt_table *opt_table;
+extern unsigned int opt_count;
+
+extern const char *opt_argv0;
+
+#define subtable_of(entry) ((struct opt_table *)((entry)->longopt))
+
+#endif /* CCAN_OPT_PRIVATE_H */