aboutsummaryrefslogtreecommitdiff
path: root/src/scaling-report.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-08-01 16:32:49 +0200
committerThomas White <taw@physics.org>2013-08-01 16:32:49 +0200
commitd001bcca749215e41a79a0de32e4cc049ace8b86 (patch)
treeb098f602f4c77f6ce51e66e50ed3e74ca7df2684 /src/scaling-report.h
parent0d9370a585d27aedd2cdf0d3b082be1cfca8e5e8 (diff)
Use a struct to contain information for scaling report
Diffstat (limited to 'src/scaling-report.h')
-rw-r--r--src/scaling-report.h15
1 files changed, 11 insertions, 4 deletions
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)
{
}