Re: [Qemu-devel] [PATCH 04/10] block/dmg: process a buffer instead of reading ints

2015-01-02 Thread John Snow
On 12/27/2014 10:01 AM, Peter Wu wrote: As the decoded plist XML is not a pointer in the file, dmg_read_mish_block must be able to process a buffer instead of a file pointer. Since the full buffer must be processed, let's change the return value again to just a success flag. Signed-off-by: Pet

[Qemu-devel] [PATCH 04/10] block/dmg: process a buffer instead of reading ints

2014-12-27 Thread Peter Wu
As the decoded plist XML is not a pointer in the file, dmg_read_mish_block must be able to process a buffer instead of a file pointer. Since the full buffer must be processed, let's change the return value again to just a success flag. Signed-off-by: Peter Wu --- block/dmg.c | 60 +++