aboutsummaryrefslogtreecommitdiff
path: root/src/scaling-report.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-13 16:51:56 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:33 +0100
commitd7f432c33754443d9552c5715f906bbf8b4765ca (patch)
treee36c89d28fd54eb4e9e309d1bdcbea2e06e1eaec /src/scaling-report.h
parent0787f3a99627f7a29a81690b7c19b926e2395259 (diff)
Loads of scaling report stuff
Diffstat (limited to 'src/scaling-report.h')
-rw-r--r--src/scaling-report.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/scaling-report.h b/src/scaling-report.h
index 3186c5f7..063a0f39 100644
--- a/src/scaling-report.h
+++ b/src/scaling-report.h
@@ -19,16 +19,35 @@
#include "utils.h"
+typedef struct _srcontext SRContext; /* Opaque */
+
#ifdef HAVE_CAIRO
-extern void scaling_report(const char *filename, const struct image *images,
- int n, const char *stream_filename);
+
+extern SRContext *sr_header(const char *filename, const char *stream_filename,
+ const char *cmdline);
+
+extern void sr_before(SRContext *sr, struct image *images, int n,
+ RefList *full);
+
+extern void sr_after(SRContext *sr, struct image *images, int n,
+ RefList *full);
+
#else
-static inline void scaling_report(const char *filename,
- const struct image *images, int n,
- const char *stream_filename)
+
+SRContext *sr_header(const char *filename, const char *stream_filename,
+ const char *cmdline)
{
- ERROR("Not writing scaling report - no Cairo support.\n");
+ return NULL;
}
+
+void sr_before(SRContext *sr, struct image *images, int n, RefList *full)
+{
+}
+
+void sr_after(SRContext *sr, struct image *images, int n, RefList *full)
+{
+}
+
#endif
#endif /* SCALING_REPORT_H */