summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-16 09:03:11 +0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 12:51:23 +0700
commit96a4fd1bb223d646bb3f3c8b9d4d0800ebe49e13 (patch)
treeccab6808c0f791790ad3662a836f451c90dad2c7 /qt-gui.cpp
parent2e08f75618e6ff86e37de5e1ee0100a31cc8efb7 (diff)
downloadsubsurface-96a4fd1bb223d646bb3f3c8b9d4d0800ebe49e13.tar.gz
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 <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 57b82b940..314e41906 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -452,7 +452,7 @@ bool compareDC(const DiveComputerNode &a, const DiveComputerNode &b)
return a.deviceId < b.deviceId;
}
-void call_for_each_dc(FILE *f, void (*callback)(FILE *, const char *, uint32_t,
+void call_for_each_dc(void *f, void (*callback)(void *, const char *, uint32_t,
const char *, const char *, const char *))
{
QList<DiveComputerNode> values = dcList.dcMap.values();