From 7812684339d03f6993882358b0045c1bc2d5032c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 13 Jun 2024 21:08:38 +0200 Subject: Added "dryrun" for gendata --- src/cube.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/cube.h') diff --git a/src/cube.h b/src/cube.h index ab8e964..0eedfec 100644 --- a/src/cube.h +++ b/src/cube.h @@ -51,6 +51,16 @@ int nissy_convertcube( char *result ); +/* +Returns the size of the data generated by nissy_gendata, when called with +the same parameters, or -1 in case of error. The returned value can be +slightly larger than the actual table size. +*/ +int64_t nissy_datasize( + const char *solver, + const char *options +); + /* Returns the number of bytes written, or -1 in case of error */ int64_t nissy_gendata( const char *solver, @@ -59,7 +69,7 @@ int64_t nissy_gendata( ); /* Returns the number of solutions found, or -1 in case of error */ -int nissy_solve( +int64_t nissy_solve( const char cube[static 22], const char *solver, const char *options, -- cgit v1.3