15 CorelinkDLL::DLLInit();
16 CorelinkDLL::setDroppedCallbackHandler(
nullptr);
17 CorelinkDLL::setStaleCallbackHandler(
nullptr);
18 CorelinkDLL::setSubscribeCallbackHandler(
nullptr);
19 CorelinkDLL::setUpdateCallbackHandler(
nullptr);
23 return CorelinkDLL::getInitState();
28 CorelinkDLL::setInitState(state, errorID);
29 CorelinkException::GetDLLException(errorID);
37 len = CorelinkDLL::getInitLocalCertPathLen();
38 if (len == 0) {
return ""; }
40 CorelinkDLL::getInitLocalCertPathStr(data);
41 path = std::string(data, len);
45 data = CorelinkDLL::getInitLocalCertPath(len);
46 path = std::string(data, len);
47 CorelinkDLL::freeData(data);
53 CorelinkDLL::setInitLocalCertPath(path, len);
65 len = CorelinkDLL::getInitServerCertPathLen();
66 if (len == 0) {
return ""; }
68 CorelinkDLL::getInitServerCertPathStr(data);
69 path = std::string(data, len);
73 data = CorelinkDLL::getInitServerCertPath(len);
74 path = std::string(data, len);
75 CorelinkDLL::freeData(data);
81 CorelinkDLL::setInitServerCertPath(path, len);
89 CorelinkDLL::setServerCredentials(username.c_str(), password.c_str());
93 CorelinkDLL::setDroppedCallbackHandler(func);
97 CorelinkDLL::setStaleCallbackHandler(func);
101 CorelinkDLL::setSubscribeCallbackHandler(func);
105 CorelinkDLL::setUpdateCallbackHandler(func);
static void setOnUpdate(void(*func)(const STREAM_ID &, const STREAM_ID &))
Defines the classes in the wrapper and their relations.
static void setOnDrop(void(*func)(const STREAM_ID &))
static std::string getServerCertPath()
static void setServerCertPath(const char *path, int len)
static std::string getLocalCertPath()
static void setServerCredentials(const std::string &username, const std::string &password)
static void setLocalCertPath(const char *path, int len)
static int getInitState()
static void setOnStale(void(*func)(const STREAM_ID &))
static void setInitState(int state)
static void setOnSubscribe(void(*func)(const STREAM_ID &, const STREAM_ID &))
Handles the underlying DLL error messages.