mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-02 14:13:07 +00:00
adding prefix to all functions
This commit is contained in:
parent
c9c70c43d2
commit
bfb832efc5
@ -24,34 +24,34 @@ typedef void (*SdsCallBack) (int callerRet, const char* msg, size_t len, void* u
|
||||
// --- Core API Functions ---
|
||||
|
||||
|
||||
void* NewReliabilityManager(const char* channelId, SdsCallBack callback, void* userData);
|
||||
void* SdsNewReliabilityManager(const char* channelId, SdsCallBack callback, void* userData);
|
||||
|
||||
void SdsSetEventCallback(void* ctx, SdsCallBack callback, void* userData);
|
||||
|
||||
int CleanupReliabilityManager(void* ctx, SdsCallBack callback, void* userData);
|
||||
int SdsCleanupReliabilityManager(void* ctx, SdsCallBack callback, void* userData);
|
||||
|
||||
int ResetReliabilityManager(void* ctx, SdsCallBack callback, void* userData);
|
||||
int SdsResetReliabilityManager(void* ctx, SdsCallBack callback, void* userData);
|
||||
|
||||
int WrapOutgoingMessage(void* ctx,
|
||||
int SdsWrapOutgoingMessage(void* ctx,
|
||||
void* message,
|
||||
size_t messageLen,
|
||||
const char* messageId,
|
||||
SdsCallBack callback,
|
||||
void* userData);
|
||||
|
||||
int UnwrapReceivedMessage(void* ctx,
|
||||
int SdsUnwrapReceivedMessage(void* ctx,
|
||||
void* message,
|
||||
size_t messageLen,
|
||||
SdsCallBack callback,
|
||||
void* userData);
|
||||
|
||||
int MarkDependenciesMet(void* ctx,
|
||||
int SdsMarkDependenciesMet(void* ctx,
|
||||
char** messageIDs,
|
||||
size_t count,
|
||||
SdsCallBack callback,
|
||||
void* userData);
|
||||
|
||||
int StartPeriodicTasks(void* ctx, SdsCallBack callback, void* userData);
|
||||
int SdsStartPeriodicTasks(void* ctx, SdsCallBack callback, void* userData);
|
||||
|
||||
|
||||
|
||||
|
||||
@ -130,7 +130,7 @@ proc initializeLibrary() {.exported.} =
|
||||
################################################################################
|
||||
### Exported procs
|
||||
|
||||
proc NewReliabilityManager(
|
||||
proc SdsNewReliabilityManager(
|
||||
channelId: cstring, callback: SdsCallBack, userData: pointer
|
||||
): pointer {.dynlib, exportc, cdecl.} =
|
||||
initializeLibrary()
|
||||
@ -177,7 +177,7 @@ proc SdsSetEventCallback(
|
||||
ctx[].eventCallback = cast[pointer](callback)
|
||||
ctx[].eventUserData = userData
|
||||
|
||||
proc CleanupReliabilityManager(
|
||||
proc SdsCleanupReliabilityManager(
|
||||
ctx: ptr SdsContext, callback: SdsCallBack, userData: pointer
|
||||
): cint {.dynlib, exportc.} =
|
||||
initializeLibrary()
|
||||
@ -193,7 +193,7 @@ proc CleanupReliabilityManager(
|
||||
|
||||
return RET_OK
|
||||
|
||||
proc ResetReliabilityManager(
|
||||
proc SdsResetReliabilityManager(
|
||||
ctx: ptr SdsContext, callback: SdsCallBack, userData: pointer
|
||||
): cint {.dynlib, exportc.} =
|
||||
initializeLibrary()
|
||||
@ -206,7 +206,7 @@ proc ResetReliabilityManager(
|
||||
userData,
|
||||
)
|
||||
|
||||
proc WrapOutgoingMessage(
|
||||
proc SdsWrapOutgoingMessage(
|
||||
ctx: ptr SdsContext,
|
||||
message: pointer,
|
||||
messageLen: csize_t,
|
||||
@ -237,7 +237,7 @@ proc WrapOutgoingMessage(
|
||||
userData,
|
||||
)
|
||||
|
||||
proc UnwrapReceivedMessage(
|
||||
proc SdsUnwrapReceivedMessage(
|
||||
ctx: ptr SdsContext,
|
||||
message: pointer,
|
||||
messageLen: csize_t,
|
||||
@ -262,7 +262,7 @@ proc UnwrapReceivedMessage(
|
||||
userData,
|
||||
)
|
||||
|
||||
proc MarkDependenciesMet(
|
||||
proc SdsMarkDependenciesMet(
|
||||
ctx: ptr SdsContext,
|
||||
messageIds: pointer,
|
||||
count: csize_t,
|
||||
@ -287,7 +287,7 @@ proc MarkDependenciesMet(
|
||||
userData,
|
||||
)
|
||||
|
||||
proc StartPeriodicTasks(
|
||||
proc SdsStartPeriodicTasks(
|
||||
ctx: ptr SdsContext, callback: SdsCallBack, userData: pointer
|
||||
): cint {.dynlib, exportc.} =
|
||||
initializeLibrary()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user