12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef PC_SDP_UTILS_H_
- #define PC_SDP_UTILS_H_
- #include <functional>
- #include <memory>
- #include <string>
- #include "api/jsep.h"
- #include "pc/session_description.h"
- #include "rtc_base/system/rtc_export.h"
- namespace webrtc {
- RTC_EXPORT std::unique_ptr<SessionDescriptionInterface> CloneSessionDescription(
- const SessionDescriptionInterface* sdesc);
- RTC_EXPORT std::unique_ptr<SessionDescriptionInterface>
- CloneSessionDescriptionAsType(const SessionDescriptionInterface* sdesc,
- SdpType type);
- typedef std::function<bool(const cricket::ContentInfo*,
- const cricket::TransportInfo*)>
- SdpContentPredicate;
- bool SdpContentsAll(SdpContentPredicate pred,
- const cricket::SessionDescription* desc);
- bool SdpContentsNone(SdpContentPredicate pred,
- const cricket::SessionDescription* desc);
- typedef std::function<void(cricket::ContentInfo*, cricket::TransportInfo*)>
- SdpContentMutator;
- void SdpContentsForEach(SdpContentMutator fn,
- cricket::SessionDescription* desc);
- }
- #endif
|