X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=d536d6bfefae290d5bf1f425b8c07ac23c50a6f0;hp=51f555ecfb059a437a598108b367e1963c13e10b;hb=7beaa3448fa8e6015798c1609f33d96e8986063d;hpb=161ae5c7585f5223a770fca66e290a4093501907 diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 51f555ec..d536d6bf 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -1,7 +1,8 @@ #ifndef CCAN_LINT_H #define CCAN_LINT_H -#include +#include #include +#include "../doc_extract.h" struct manifest { char *basename; @@ -54,11 +55,16 @@ struct ccan_file { unsigned int num_lines; char **lines; + + struct list_head *doc_sections; }; /* Use this rather than accessing f->lines directly: loads on demand. */ char **get_ccan_file_lines(struct ccan_file *f); +/* Similarly for ->doc_sections */ +struct list_head *get_ccan_file_docs(struct ccan_file *f); + /* Call the reporting on every line in the file. sofar contains * previous results. */ char *report_on_lines(struct list_head *files,