Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=2 et sw=2 tw=80: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : #ifndef _SIPCCSDPPARSER_H_
8 : #define _SIPCCSDPPARSER_H_
9 :
10 : #include <string>
11 :
12 : #include "mozilla/UniquePtr.h"
13 :
14 : #include "signaling/src/sdp/Sdp.h"
15 : #include "signaling/src/sdp/SdpErrorHolder.h"
16 :
17 : namespace mozilla
18 : {
19 :
20 : class SipccSdpParser final : public SdpErrorHolder
21 : {
22 : public:
23 0 : SipccSdpParser() {}
24 0 : virtual ~SipccSdpParser() {}
25 :
26 : /**
27 : * This parses the provided text into an SDP object.
28 : * This returns a nullptr-valued pointer if things go poorly.
29 : */
30 : UniquePtr<Sdp> Parse(const std::string& sdpText);
31 : };
32 :
33 : } // namespace mozilla
34 :
35 : #endif
|