X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=ac169fa81156b57452708208af65fecd05402fdf;hb=7c71ddab47d9b06aa140f305c956e454d711e66e;hp=51f555ecfb059a437a598108b367e1963c13e10b;hpb=650c775ff00cccd03fc84e7789a03c51d9839004;p=ccan diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 51f555ec..ac169fa8 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; @@ -11,6 +12,7 @@ struct manifest { struct list_head h_files; struct list_head run_tests; + struct list_head api_tests; struct list_head compile_ok_tests; struct list_head compile_fail_tests; struct list_head other_test_files; @@ -54,11 +56,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,