discover: separate file-reading code into file.c
authorJeremy Kerr <jk@ozlabs.org>
Thu, 8 Aug 2013 06:40:59 +0000 (14:40 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 8 Aug 2013 08:28:39 +0000 (16:28 +0800)
commita70807730ef59efc4116556ecabe1b9f70ce605b
treee23003459b930003ad6ab06f71ac7fb7aa014b1f
parentbee85b3946d50bc4ee02ab889f4b3a9cd0defe98
discover: separate file-reading code into file.c

We'll need to read files in the network config code, so add a 'file'
object, containing the read_file function.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/Makefile.am
discover/file.c [new file with mode: 0644]
discover/file.h [new file with mode: 0644]
discover/parser.c