From e986713657bc5f9880e91ed49dd9b0d0227f048d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 17 Jun 2024 17:39:06 +0200 Subject: Use callback function to log to stderr --- src/cube.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cube.h') diff --git a/src/cube.h b/src/cube.h index fb96823..4c2c492 100644 --- a/src/cube.h +++ b/src/cube.h @@ -1,3 +1,5 @@ +/* include: inttypes, stdarg, stdbool, string */ + /* All the functions below return 0 in case of success and a positive number in case of error, unless otherwise specified. See (TODO: @@ -81,3 +83,5 @@ int64_t nissy_solve( const void *data, char *solutions ); + +void nissy_setlogger(void (*logger_function)(const char *, va_list)); -- cgit v1.3