mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Updated description and candidate callbacks with move semantics
This commit is contained in:
@ -89,8 +89,8 @@ public:
|
||||
const Reliability &reliability = {});
|
||||
|
||||
void onDataChannel(std::function<void(std::shared_ptr<DataChannel> dataChannel)> callback);
|
||||
void onLocalDescription(std::function<void(const Description &description)> callback);
|
||||
void onLocalCandidate(std::function<void(const Candidate &candidate)> callback);
|
||||
void onLocalDescription(std::function<void(Description description)> callback);
|
||||
void onLocalCandidate(std::function<void(Candidate candidate)> callback);
|
||||
void onStateChange(std::function<void(State state)> callback);
|
||||
void onGatheringStateChange(std::function<void(GatheringState state)> callback);
|
||||
|
||||
@ -160,8 +160,8 @@ private:
|
||||
std::atomic<GatheringState> mGatheringState;
|
||||
|
||||
synchronized_callback<std::shared_ptr<DataChannel>> mDataChannelCallback;
|
||||
synchronized_callback<const Description &> mLocalDescriptionCallback;
|
||||
synchronized_callback<const Candidate &> mLocalCandidateCallback;
|
||||
synchronized_callback<Description> mLocalDescriptionCallback;
|
||||
synchronized_callback<Candidate> mLocalCandidateCallback;
|
||||
synchronized_callback<State> mStateChangeCallback;
|
||||
synchronized_callback<GatheringState> mGatheringStateChangeCallback;
|
||||
synchronized_callback<binary> mMediaCallback;
|
||||
|
Reference in New Issue
Block a user