From d001bcca749215e41a79a0de32e4cc049ace8b86 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Aug 2013 16:32:49 +0200 Subject: Use a struct to contain information for scaling report --- src/scaling-report.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/scaling-report.h') diff --git a/src/scaling-report.h b/src/scaling-report.h index 5b153377..473e1759 100644 --- a/src/scaling-report.h +++ b/src/scaling-report.h @@ -38,6 +38,15 @@ typedef struct _srcontext SRContext; /* Opaque */ +/* Information is logged in this structure */ +struct srdata +{ + int n_no_refine; /* Number that couldn't be refined */ + Crystal **crystals; + int n; + RefList *full; +}; + #ifdef HAVE_CAIRO extern SRContext *sr_titlepage(Crystal **crystals, int n, @@ -45,8 +54,7 @@ extern SRContext *sr_titlepage(Crystal **crystals, int n, const char *stream_filename, const char *cmdline); -extern void sr_iteration(SRContext *sr, int iteration, - Crystal **crystals, int n, RefList *full); +extern void sr_iteration(SRContext *sr, int iteration, struct srdata *d); extern void sr_finish(SRContext *sr); @@ -58,8 +66,7 @@ SRContext *sr_titlepage(Crystal **crystals, int n, const char *filename, return NULL; } -void sr_iteration(SRContext *sr, int iteration, Crystal **crystals, int n, - RefList *full) +void sr_iteration(SRContext *sr, int iteration, struct srdata *d) { } -- cgit v1.2.3