summaryrefslogtreecommitdiff
path: root/tools/doc_extract.h
blob: d5bc693a5800b694b2f71bedb4e01cd8e542e127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
	/* Where did I come from? */
	unsigned int srcline;
	unsigned int num_lines;
	char **lines;
};

struct list_head *extract_doc_sections(char **rawlines, const char *file);
#endif /* _DOC_EXTRACT_CORE_H */