diff options
Diffstat (limited to 'src/cube.h')
| -rw-r--r-- | src/cube.h | 18 |
1 files changed, 13 insertions, 5 deletions
| @@ -1,6 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | All the functions below return 0 in case of success and a positive number | 2 | All the functions below return 0 in case of success and a positive |
| 3 | in case of error. See (TODO: documentation) for details. | 3 | number in case of error, unless otherwise specified. See (TODO: |
| 4 | documentation) for details. | ||
| 4 | */ | 5 | */ |
| 5 | 6 | ||
| 6 | int nissy_compose( | 7 | int nissy_compose( |
| @@ -43,13 +44,21 @@ int nissy_writecube( | |||
| 43 | char *result | 44 | char *result |
| 44 | ); | 45 | ); |
| 45 | 46 | ||
| 46 | int nissy_gendata( | 47 | int 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 */ | ||
| 55 | int64_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 */ | ||
| 53 | int nissy_solve( | 62 | int 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 | ); |
