aboutsummaryrefslogtreecommitdiff
path: root/python/nissy_module.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-29 10:08:04 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-29 10:08:04 +0200
commit8d3fc9f5f9c0593fcae9c451efe6c89c64dcbe84 (patch)
tree8c0182f9bf94aaa8afe5126988e07af82c4409fd /python/nissy_module.c
parentcdf46d85efe7fa54e8c302a255214341c567b4af (diff)
downloadnissy-core-8d3fc9f5f9c0593fcae9c451efe6c89c64dcbe84.tar.gz
nissy-core-8d3fc9f5f9c0593fcae9c451efe6c89c64dcbe84.zip
Added stop / pause / resume solve to API
Diffstat (limited to '')
-rw-r--r--python/nissy_module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/nissy_module.c b/python/nissy_module.c
index bf5a71a..069dea0 100644
--- a/python/nissy_module.c
+++ b/python/nissy_module.c
@@ -300,7 +300,7 @@ solve(PyObject *self, PyObject *args)
300 result = nissy_solve(cube, solver, nissflag, minmoves, maxmoves, 300 result = nissy_solve(cube, solver, nissflag, minmoves, maxmoves,
301 maxsolutions, optimal, threads, data->ob_alloc, 301 maxsolutions, optimal, threads, data->ob_alloc,
302 (unsigned char *)data->ob_bytes, MAX_SOLUTIONS_SIZE, solutions, 302 (unsigned char *)data->ob_bytes, MAX_SOLUTIONS_SIZE, solutions,
303 stats); 303 stats, NULL, NULL);
304 Py_END_ALLOW_THREADS 304 Py_END_ALLOW_THREADS
305 305
306 if(!check_error(result)) { 306 if(!check_error(result)) {
@@ -350,9 +350,9 @@ static PyMethodDef nissy_methods[] = {
350 { "getcube", getcube, METH_VARARGS, getcube_doc }, 350 { "getcube", getcube, METH_VARARGS, getcube_doc },
351 { "solverinfo", solverinfo, METH_VARARGS, solverinfo_doc }, 351 { "solverinfo", solverinfo, METH_VARARGS, solverinfo_doc },
352 { "gendata", gendata, METH_VARARGS, gendata_doc }, 352 { "gendata", gendata, METH_VARARGS, gendata_doc },
353 { "checkdata", checkdata, METH_VARARGS, checkdata_doc }, 353 { "checkdata", _checkdata, METH_VARARGS, checkdata_doc },
354 { "solve", solve, METH_VARARGS, solve_doc }, 354 { "solve", solve, METH_VARARGS, solve_doc },
355 { "countmoves", countmoves, METH_VARARGS, countmoves_doc }, 355 { "countmoves", _countmoves, METH_VARARGS, countmoves_doc },
356 { NULL, NULL, 0, NULL } 356 { NULL, NULL, 0, NULL }
357}; 357};
358 358

Generated with cgit - Back to sebastiano.tronto.net