Skip to content

Commit

Permalink
FREEZE.indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Feb 12, 2024
1 parent bfc3da8 commit 86c42ba
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions binaries/libtwsearch_ffi.d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/workspaces/twsearch/target/release/libtwsearch_ffi.so: /workspaces/twsearch/src/rs/_internal/canonical_fsm/canonical_fsm.rs /workspaces/twsearch/src/rs/_internal/canonical_fsm/mod.rs /workspaces/twsearch/src/rs/_internal/canonical_fsm/search_generators.rs /workspaces/twsearch/src/rs/_internal/cli/io.rs /workspaces/twsearch/src/rs/_internal/cli/mod.rs /workspaces/twsearch/src/rs/_internal/cli/options_impl.rs /workspaces/twsearch/src/rs/_internal/errors.rs /workspaces/twsearch/src/rs/_internal/gods_algorithm/bulk_queue.rs /workspaces/twsearch/src/rs/_internal/gods_algorithm/factor_number.rs /workspaces/twsearch/src/rs/_internal/gods_algorithm/gods_algorithm_table.rs /workspaces/twsearch/src/rs/_internal/gods_algorithm/mod.rs /workspaces/twsearch/src/rs/_internal/mod.rs /workspaces/twsearch/src/rs/_internal/search/idf_search.rs /workspaces/twsearch/src/rs/_internal/search/mod.rs /workspaces/twsearch/src/rs/_internal/search/prune_table.rs /workspaces/twsearch/src/rs/_internal/search/recursive_work_tracker.rs /workspaces/twsearch/src/rs/_internal/search/search_logger.rs /workspaces/twsearch/src/rs/mod.rs /workspaces/twsearch/src/rs/scramble/event.rs /workspaces/twsearch/src/rs/scramble/mod.rs /workspaces/twsearch/src/rs/scramble/puzzle.rs /workspaces/twsearch/src/rs/scramble/puzzles/big_cubes.rs /workspaces/twsearch/src/rs/scramble/puzzles/clock.rs /workspaces/twsearch/src/rs/scramble/puzzles/cube2x2x2.rs /workspaces/twsearch/src/rs/scramble/puzzles/cube3x3x3.rs /workspaces/twsearch/src/rs/scramble/puzzles/definitions/3x3x3-G1-centerless.target-pattern.json /workspaces/twsearch/src/rs/scramble/puzzles/definitions/3x3x3-centerless.kpuzzle.json /workspaces/twsearch/src/rs/scramble/puzzles/definitions/5x5x5.kpuzzle.json /workspaces/twsearch/src/rs/scramble/puzzles/definitions/6x6x6.kpuzzle.json /workspaces/twsearch/src/rs/scramble/puzzles/definitions/7x7x7.kpuzzle.json /workspaces/twsearch/src/rs/scramble/puzzles/definitions/mod.rs /workspaces/twsearch/src/rs/scramble/puzzles/definitions/tetraminx.kpuzzle.json /workspaces/twsearch/src/rs/scramble/puzzles/megaminx.rs /workspaces/twsearch/src/rs/scramble/puzzles/mod.rs /workspaces/twsearch/src/rs/scramble/puzzles/pyraminx.rs /workspaces/twsearch/src/rs/scramble/puzzles/static_move_list.rs /workspaces/twsearch/src/rs/scramble/random_scramble_for_event.rs /workspaces/twsearch/src/rs/scramble/randomize.rs /workspaces/twsearch/src/rs/scramble/scramble_search.rs /workspaces/twsearch/src/rs-ffi/events.rs /workspaces/twsearch/src/rs-ffi/lib.rs
65 changes: 65 additions & 0 deletions binaries/libtwsearch_ffi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus

extern const char (*CUBING_EVENT_333);

extern const char (*CUBING_EVENT_222);

extern const char (*CUBING_EVENT_444);

extern const char (*CUBING_EVENT_555);

extern const char (*CUBING_EVENT_666);

extern const char (*CUBING_EVENT_777);

extern const char (*CUBING_EVENT_333BF);

extern const char (*CUBING_EVENT_333FM);

extern const char (*CUBING_EVENT_333OH);

extern const char (*CUBING_EVENT_CLOCK);

extern const char (*CUBING_EVENT_MINX);

extern const char (*CUBING_EVENT_PYRAM);

extern const char (*CUBING_EVENT_SKEWB);

extern const char (*CUBING_EVENT_SQ1);

extern const char (*CUBING_EVENT_444BF);

extern const char (*CUBING_EVENT_555BF);

extern const char (*CUBING_EVENT_333MB);

extern const char (*CUBING_EVENT_FTO);

extern const char (*CUBING_EVENT_MASTER_TETRAMINX);

extern const char (*CUBING_EVENT_KILOMINX);

extern const char (*CUBING_EVENT_REDI_CUBE);

/**
* # Safety
*
* This function can panic. If you are working in pure Rust, use [`twsearch::scramble::random_scramble_for_event`] instead.
*
* Returns:
* - A null pointer for *any* error.
* - A valid scramble (in the form of a C string) otherwise.
*/
const char *ffi_random_scramble_for_event(const char *event_raw_cstr);

#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
Binary file added binaries/libtwsearch_ffi.so
Binary file not shown.
Binary file added binaries/twsearch
Binary file not shown.

0 comments on commit 86c42ba

Please sign in to comment.