Split up file reading from 'parse-xml.c' into 'file.c'

We're going to eventually import non-xml files too, so let's begin
splitting the logic up.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2012-01-26 13:00:45 -08:00
parent 6e0ea1ce61
commit 4d10bc017a
6 changed files with 88 additions and 71 deletions

4
dive.h
View file

@ -254,9 +254,11 @@ static inline struct dive *get_dive(unsigned int nr)
}
extern void parse_xml_init(void);
extern void parse_xml_file(const char *filename, GError **error);
extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error);
extern void set_filename(const char *filename);
extern void parse_file(const char *filename, GError **error);
#ifdef XSLT
extern xmlDoc *test_xslt_transforms(xmlDoc *doc);
#endif