diff options
author | Roxie Linden <roxie@lindenlab.com> | 2023-09-19 10:14:29 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-02-22 23:11:34 -0800 |
commit | 8859312b1f0d975793c6c2a3d7b23b9880c657c5 (patch) | |
tree | 2ed9a2b5430a842e46e5ec78cf6c081e0b7d3b0f /indra/llwebrtc/llwebrtc.h | |
parent | 639e63faab239b88d41c8e2c755509e9dcdc6251 (diff) |
add datachannel support
Diffstat (limited to 'indra/llwebrtc/llwebrtc.h')
-rw-r--r-- | indra/llwebrtc/llwebrtc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llwebrtc/llwebrtc.h b/indra/llwebrtc/llwebrtc.h index ca558add01..a6e754684e 100644 --- a/indra/llwebrtc/llwebrtc.h +++ b/indra/llwebrtc/llwebrtc.h @@ -96,6 +96,21 @@ class LLWebRTCAudioInterface virtual void setSpeakerVolume(float volume) = 0; // volume between 0.0 and 1.0 }; +class LLWebRTCDataObserver +{ +public: + virtual void OnDataReceived(const std::string& data, bool binary) = 0; +}; + +class LLWebRTCDataInterface +{ +public: + virtual void sendData(const std::string& data, bool binary=false) = 0; + + virtual void setDataObserver(LLWebRTCDataObserver *observer) = 0; + virtual void unsetDataObserver(LLWebRTCDataObserver *observer) = 0; +}; + class LLWebRTCSignalingObserver { public: @@ -124,6 +139,7 @@ class LLWebRTCSignalInterface LLSYMEXPORT LLWebRTCDeviceInterface* getDeviceInterface(); LLSYMEXPORT LLWebRTCSignalInterface* getSignalingInterface(); +LLSYMEXPORT LLWebRTCDataInterface* getDataInterface(); } #endif // LLWEBRTC_H |