]> git.ozlabs.org Git - ccan/blobdiff - tools/doc_extract.h
Broaden use of doc_extract code, put in ccanlint, and fix ccanlint
[ccan] / tools / doc_extract.h
diff --git a/tools/doc_extract.h b/tools/doc_extract.h
new file mode 100644 (file)
index 0000000..5dca49b
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _DOC_EXTRACT_CORE_H
+#define _DOC_EXTRACT_CORE_H
+#include <stdbool.h>
+#include <ccan/list/list.h>
+
+struct doc_section {
+       struct list_node list;
+       const char *function;
+       const char *type;
+       unsigned int num_lines;
+       char **lines;
+};
+
+struct list_head *extract_doc_sections(char **rawlines, unsigned int num);
+#endif /* _DOC_EXTRACT_CORE_H */