summaryrefslogtreecommitdiffstats
path: root/test/plist_otest.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-04-19 17:49:07 +0200
committerGravatar Nikias Bassen2023-04-19 17:49:07 +0200
commitce9ce43efd707a85cc792ff2cc417603a53d4d1d (patch)
tree64c471946cc9e2da8a373db1c1c85fb41bc84265 /test/plist_otest.c
parent3aa5f6a3a663a5f2694ec6fc8cdf9744b616e15e (diff)
downloadlibplist-ce9ce43efd707a85cc792ff2cc417603a53d4d1d.tar.gz
libplist-ce9ce43efd707a85cc792ff2cc417603a53d4d1d.tar.bz2
Add plist_read_from_file() to interface, update plist_from_memory()
plist_read_from_file() is a convenience function that will open a given file, checks its size, allocates a buffer large enough to hold the full contents, and reads from file to fill the buffer. Then, it calls plist_from_memory() to convert the data to plist format. A (breaking) change had to be made so that plist_from_memory() will also return the parsed format in its 4th argument (if non-NULL).
Diffstat (limited to 'test/plist_otest.c')
0 files changed, 0 insertions, 0 deletions