From 96a4fd1bb223d646bb3f3c8b9d4d0800ebe49e13 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 16 Jan 2014 09:03:11 +0700 Subject: Save XML files into a memory buffer rather than directly into a file This introduces a "struct membuffer" abstraction that you can write things into, and makes the XML saving code write to the memory buffer rather than a file. The UDDF export already really wanted this: it used to write to a file, only to then read that file back into memory, delete the file, and then *rewrite* the file after doing the magic xslt transform. But the longer-term reason for this is that I want to try to write other formats, and I want to try to share most helpers. And those other formats will need this memory buffer model. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device.h') diff --git a/device.h b/device.h index 57735a64b..ad5dee6f1 100644 --- a/device.h +++ b/device.h @@ -8,7 +8,7 @@ extern "C" { extern struct divecomputer *fake_dc(struct divecomputer* dc); extern void create_device_node(const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname); -extern void call_for_each_dc(FILE *f, void (*callback)(FILE *, const char *, uint32_t, +extern void call_for_each_dc(void *f, void (*callback)(void *, const char *, uint32_t, const char *, const char *, const char *)); #ifdef __cplusplus -- cgit v1.2.3-70-g09d2