aboutsummaryrefslogtreecommitdiff
path: root/src/cube.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cube.h')
-rw-r--r--src/cube.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/cube.h b/src/cube.h
index b5f4211..6b68f00 100644
--- a/src/cube.h
+++ b/src/cube.h
@@ -1,6 +1,7 @@
1/* 1/*
2All the functions below return 0 in case of success and a positive number 2All the functions below return 0 in case of success and a positive
3in case of error. See (TODO: documentation) for details. 3number in case of error, unless otherwise specified. See (TODO:
4documentation) for details.
4*/ 5*/
5 6
6int nissy_compose( 7int nissy_compose(
@@ -43,13 +44,21 @@ int nissy_writecube(
43 char *result 44 char *result
44); 45);
45 46
46int nissy_gendata( 47int nissy_convertcube(
48 const char *format_in,
49 const char *format_out,
50 const char *cube_string,
51 char *result
52);
53
54/* Returns the number of bytes written, or -1 in case of error */
55int64_t nissy_gendata(
47 const char *solver, 56 const char *solver,
48 const char *options, 57 const char *options,
49 void *generated_data, 58 void *generated_data,
50 int64_t *generated_bytes
51); 59);
52 60
61/* Returns the number of solutions found, or -1 in case of error */
53int nissy_solve( 62int nissy_solve(
54 const char cube[static 22], 63 const char cube[static 22],
55 const char *solver, 64 const char *solver,
@@ -61,5 +70,4 @@ int nissy_solve(
61 int8_t optimal, 70 int8_t optimal,
62 const void *data, 71 const void *data,
63 char *solutions, 72 char *solutions,
64 int *n_solutions
65); 73);

Generated with cgit - Back to sebastiano.tronto.net