aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMJsonWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DMJsonWriter.h')
-rw-r--r--dm/DMJsonWriter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dm/DMJsonWriter.h b/dm/DMJsonWriter.h
index 58d85d358d..593484688b 100644
--- a/dm/DMJsonWriter.h
+++ b/dm/DMJsonWriter.h
@@ -44,7 +44,14 @@ public:
* Write all collected results to the file FLAGS_writePath[0]/dm.json.
*/
static void DumpJson();
+
+ /**
+ * Read JSON file at path written by DumpJson, calling callback for each
+ * BitmapResult recorded in the file. Return success.
+ */
+ static bool ReadJson(const char* path, void(*callback)(BitmapResult));
};
+
} // namespace DM
#endif // DMJsonWriter_DEFINED