Add destroy method for peer instance

This commit is contained in:
dijunkun
2024-06-06 15:09:25 +08:00
parent 460d644d64
commit 5e804349d9
3 changed files with 40 additions and 9 deletions

View File

@@ -73,6 +73,8 @@ typedef struct {
DLLAPI PeerPtr* CreatePeer(const Params* params);
DLLAPI void DestroyPeer(PeerPtr* peer_ptr);
DLLAPI int Init(PeerPtr* peer_ptr, const char* user_id);
DLLAPI int CreateConnection(PeerPtr* peer_ptr, const char* transmission_id,