4
Fork 0
This commit is contained in:
Artem Prilutskiy 2017-05-23 14:19:04 +03:00
parent 76c1d8bfcf
commit 34084f1791
3 changed files with 42 additions and 41 deletions

View file

@ -15,6 +15,9 @@ extern "C"
{
#endif
#define SESSION_TYPE_PRIVATE_VOICE 5
#define SESSION_TYPE_GROUP_VOICE 7
#define CLIENT_ERROR_SUCCESS 0
#define CLIENT_ERROR_SOCKET_IO -1
#define CLIENT_ERROR_WRONG_ADDRESS -2
@ -33,8 +36,8 @@ struct RewindContext
size_t length;
};
struct RewindContext* CreateRewindClient(uint32_t number, const char* verion);
void ReleaseRewindClient(struct RewindContext* context);
struct RewindContext* CreateRewindContext(uint32_t number, const char* verion);
void ReleaseRewindContext(struct RewindContext* context);
void TransmitRewindData(struct RewindContext* context, uint16_t type, uint16_t flag, void* data, size_t length);
ssize_t ReceiveRewindData(struct RewindContext* context, struct RewindData* buffer, ssize_t length);