]> git.cworth.org Git - apitrace/blobdiff - retrace/json.hpp
retrace: Factor out image json dumping into json.cpp.
[apitrace] / retrace / json.hpp
index 94338008a3f1ac853389187ff3934997f1fc768f..2c555dbb1e906bd361b73732a50e9dae6c23796a 100644 (file)
 #include <string>
 
 
+namespace image {
+    class Image;
+}
+
+
 class JSONWriter
 {
 private:
@@ -177,6 +182,9 @@ public:
         writeInt(n);
         endMember();
     }
+
+    void
+    writeImage(image::Image *image, const char *format, unsigned depth = 1);
 };
 
 #endif /* _JSON_HPP_ */