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

2
main.c
View file

@ -226,7 +226,7 @@ int main(int argc, char **argv)
continue;
}
GError *error = NULL;
parse_xml_file(a, &error);
parse_file(a, &error);
if (error != NULL)
{