summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-22 05:32:11 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-22 05:32:11 +0000
commite32e140ef7a07037a785f18d48ae679ca941487a (patch)
treeb5a7a490b4a2d9318752b31267adb2d7326d4b72 /libdimension/dimension
parentd23bff8a2eee13eec0724aabe5d9a86b126c4b2c (diff)
downloaddimension-e32e140ef7a07037a785f18d48ae679ca941487a.tar.xz
New asynchronous PNG interface.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/png.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/libdimension/dimension/png.h b/libdimension/dimension/png.h
index 9ee55c3..8c18bcb 100644
--- a/libdimension/dimension/png.h
+++ b/libdimension/dimension/png.h
@@ -24,20 +24,14 @@
#include <dimension.h>
#include <stdio.h>
-#ifdef __cplusplus
-/* We've been included from a C++ file; mark everything here as extern "C" */
-extern "C" {
-#endif
-
/* Write canvas to file in PNG format. Returns 0 on success, nonzero on
failure */
int dmnsn_png_write_canvas(const dmnsn_canvas *canvas, FILE *file);
+dmnsn_progress *dmnsn_png_write_canvas_async(const dmnsn_canvas *canvas,
+ FILE *file);
/* Read a canvas from a PNG file. Returns NULL on failure. */
dmnsn_canvas *dmnsn_png_read_canvas(FILE *file);
-
-#ifdef __cplusplus
-}
-#endif
+dmnsn_progress *dmnsn_png_read_canvas_async(dmnsn_canvas **canvas, FILE *file);
#endif /* DIMENSION_PNG_H */