]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - doc/autogen/gen.h
Switched documentation from asciidoc to rst, added doc autogeneration code for options
[bcachefs-tools-debian] / doc / autogen / gen.h
diff --git a/doc/autogen/gen.h b/doc/autogen/gen.h
new file mode 100644 (file)
index 0000000..2a7e500
--- /dev/null
@@ -0,0 +1,18 @@
+#include "../../libbcachefs/opts.h"
+
+/**
+ * generate tables from definitions in opt.h
+ */
+
+#define NULL (null)
+
+FMT_START_SECTION
+
+FMT_START_LINE Name ; Data Type ; Type Description ; Description ; Usage Flag FMT_END_LINE
+
+#define x(_name, _shortopt, _type, _in_mem_type, _mode, _sb_opt, _idk1, _idk2)\
+    FMT_START_LINE _name ; _shortopt ; _idk1 ; _idk2 ; _type FMT_END_LINE
+    BCH_OPTS()
+#undef x
+
+FMT_END_SECTION