diff options
Diffstat (limited to '')
| -rw-r--r-- | src/nissy.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/nissy.h b/src/nissy.h index 0c1d18d..38fe656 100644 --- a/src/nissy.h +++ b/src/nissy.h | |||
| @@ -42,6 +42,10 @@ for example 'rotation UF' or 'mirrored BL'. | |||
| 42 | #define NISSY_STATUS_STOP 1 | 42 | #define NISSY_STATUS_STOP 1 |
| 43 | #define NISSY_STATUS_PAUSE 2 | 43 | #define NISSY_STATUS_PAUSE 2 |
| 44 | 44 | ||
| 45 | /* Possible results of move sequence comparison */ | ||
| 46 | #define NISSY_COMPARE_MOVES_EQUAL 0 | ||
| 47 | #define NISSY_COMPARE_MOVES_DIFFERENT 99 | ||
| 48 | |||
| 45 | /* The solved cube */ | 49 | /* The solved cube */ |
| 46 | #define NISSY_SOLVED_CUBE "ABCDEFGH=ABCDEFGHIJKL=A" | 50 | #define NISSY_SOLVED_CUBE "ABCDEFGH=ABCDEFGHIJKL=A" |
| 47 | 51 | ||
| @@ -375,6 +379,24 @@ nissy_countmoves( | |||
| 375 | ); | 379 | ); |
| 376 | 380 | ||
| 377 | /* | 381 | /* |
| 382 | Parameters: | ||
| 383 | moves1 - The first sequence of moves to compare. | ||
| 384 | moves2 - The second sequence of moves to compare. | ||
| 385 | |||
| 386 | Return values: | ||
| 387 | NISSY_ERROR_INVALID_MOVES - One of the given moves sequences is invalid. | ||
| 388 | NISSY_ERROR_NULL_POINTER - One of the arguments is NULL. | ||
| 389 | NISSY_COMPARE_MOVES_EQUAL - The two moves sequences are indentical, up | ||
| 390 | to swapping parallel moves. | ||
| 391 | NISSY_COMPARE_MOVES_DIFFERENT - The two moves sequences are different. | ||
| 392 | */ | ||
| 393 | long long | ||
| 394 | nissy_comparemoves( | ||
| 395 | const char *moves1, | ||
| 396 | const char *moves2 | ||
| 397 | ); | ||
| 398 | |||
| 399 | /* | ||
| 378 | Set a global logger function used by this library. Setting the logger to NULL | 400 | Set a global logger function used by this library. Setting the logger to NULL |
| 379 | disables logging. | 401 | disables logging. |
| 380 | 402 | ||
