From f21c3e6fcb7054a6d98d4a2044e68056bacea968 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Wed, 9 Apr 2025 18:31:43 +0300 Subject: [PATCH] fixing function signature --- library/libsds.h | 2 +- library/libsds.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/libsds.h b/library/libsds.h index aa2909a..1bc26a7 100644 --- a/library/libsds.h +++ b/library/libsds.h @@ -28,7 +28,7 @@ typedef void (*SdsCallBack) (int callerRet, const char* msg, size_t len, void* u * @param channelId A unique identifier for the communication channel. * @return An opaque handle (void*) representing the instance, or NULL on failure. */ -void* NewReliabilityManager(char* channelId); +void* NewReliabilityManager(char* channelId, SdsCallBack callback, void* userData); #ifdef __cplusplus diff --git a/library/libsds.nim b/library/libsds.nim index 81e8362..767586c 100644 --- a/library/libsds.nim +++ b/library/libsds.nim @@ -108,7 +108,7 @@ proc initializeLibrary() {.exported.} = ### Exported procs proc NewReliabilityManager( - channelId: cstring, callback: SdsCallback, userData: pointer + channelId: cstring, callback: SdsCallBack, userData: pointer ): pointer {.dynlib, exportc, cdecl.} = initializeLibrary()