aboutsummaryrefslogtreecommitdiff
path: root/src/nissy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nissy.h')
-rw-r--r--src/nissy.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/nissy.h b/src/nissy.h
index 6c5a3e6..23bcb8b 100644
--- a/src/nissy.h
+++ b/src/nissy.h
@@ -25,6 +25,7 @@ for example 'rotation UF' or 'mirrored BL'.
25#define NISSY_SIZE_H48 88U 25#define NISSY_SIZE_H48 88U
26#define NISSY_SIZE_TRANSFORMATION 12U 26#define NISSY_SIZE_TRANSFORMATION 12U
27#define NISSY_SIZE_SOLVE_STATS 10U 27#define NISSY_SIZE_SOLVE_STATS 10U
28#define NISSY_DATAID_SIZE 255U
28 29
29/* Flags for NISS options */ 30/* Flags for NISS options */
30#define NISSY_NISSFLAG_NORMAL 1U 31#define NISSY_NISSFLAG_NORMAL 1U
@@ -191,11 +192,15 @@ nissy_getcube(
191); 192);
192 193
193/* 194/*
194Compute the size of the data generated by nissy_gendata, when called with 195Compute the size of the data generated by nissy_gendata when called for
195the same parameters, or -1 in case of error. 196the given solver, and other useful information.
196 197
197Parameters: 198Parameters:
198 solver - The name of the solver. 199 solver - The name of the solver.
200 dataid - An identifier for the data computed for the solver. Different
201 solver may use equivalent data. This identifier can be used
202 e.g. as a filename or database key to save and retrieve the
203 correct data for each solver, without duplication.
199 204
200Return values: 205Return values:
201 NISSY_ERROR_INVALID_SOLVER - The given solver is not known. 206 NISSY_ERROR_INVALID_SOLVER - The given solver is not known.
@@ -204,8 +209,9 @@ Return values:
204 Any value >= 0 - The size of the data, in bytes. 209 Any value >= 0 - The size of the data, in bytes.
205*/ 210*/
206long long 211long long
207nissy_datasize( 212nissy_solverinfo(
208 const char *solver 213 const char *solver,
214 char dataid[static NISSY_DATAID_SIZE]
209); 215);
210 216
211/* 217/*

Generated with cgit - Back to sebastiano.tronto.net