-
Notifications
You must be signed in to change notification settings - Fork 0
/
shim.h
26 lines (20 loc) · 917 Bytes
/
shim.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SHIM_H
#define SHIM_H
#include "streamrproxyclient.h"
#ifdef __cplusplus
extern "C" {
#endif
void loadSharedLibrary(const char* libFilePath);
void closeSharedLibrary();
void proxyClientInitLibraryWrapper(void); // NOLINT
void proxyClientCleanupLibraryWrapper(void); // NOLINT
void proxyClientResultDeleteWrapper(const ProxyResult* result);
uint64_t proxyClientNewWrapper(const ProxyResult** result, const char* streamId, const char* topic);
void proxyClientDeleteWrapper(const ProxyResult** result, uint64_t id);
uint64_t proxyClientConnectWrapper(const ProxyResult** result, uint64_t id, const Proxy* proxy, uint64_t proxyId);
void proxyClientDisconnectWrapper(const ProxyResult** result, uint64_t id);
uint64_t proxyClientPublishWrapper(const ProxyResult** result, uint64_t id, const char* content, uint64_t contentLength, const char* ethereumPrivateKey);
#ifdef __cplusplus
}
#endif
#endif // SHIM_H