-struct info_docs
-{
- bool summary;
- bool description;
-};
-
-static void *check_has_info_documentation(struct manifest *m,
- bool keep,
- unsigned int *timeleft)
-{
- struct list_head *infodocs = get_ccan_file_docs(m->info_file);
- struct doc_section *d;
- struct info_docs id = { false, false };
-
- list_for_each(infodocs, d, list) {
- if (!streq(d->function, m->basename))
- continue;
- if (streq(d->type, "summary"))
- id.summary = true;
- if (streq(d->type, "description"))
- id.description = true;
- }
-
- if (id.summary && id.description)
- return NULL;
- return talloc_memdup(m, &id, sizeof(id));
-}
-
-/* This is defined below. */
-extern struct ccanlint has_info_documentation;
-
-static void create_info_template_doc(struct manifest *m, void *check_result)