mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-25 01:13:11 +00:00
fixing function signature
This commit is contained in:
parent
b90387799a
commit
f21c3e6fcb
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user