fixing function signature

This commit is contained in:
Gabriel mermelstein 2025-04-09 18:31:43 +03:00
parent b90387799a
commit f21c3e6fcb
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()