Skip to content

Commit

Permalink
Merge pull request mozilla#14 from martinthomson/sdp_stub
Browse files Browse the repository at this point in the history
Working on getting it working
  • Loading branch information
docfaraday committed Sep 17, 2014
2 parents 55ddf1c + b60d84f commit 45706ca
Show file tree
Hide file tree
Showing 17 changed files with 592 additions and 303 deletions.
2 changes: 2 additions & 0 deletions media/webrtc/signaling/signaling.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@

'./src/sdp/Sdp.h',
'./src/sdp/SdpAttribute.h',
'./src/sdp/SdpAttributeList.h',
'./src/sdp/SdpEnum.h',
'./src/sdp/SdpMediaSection.h',
'./src/sdp/SipccSdp.h',
'./src/sdp/SipccSdpAttributeList.h',
'./src/sdp/SipccSdpMediaSection.h',
'./src/sdp/SipccSdpParser.h',
'./src/sdp/SipccSdp.cpp',
Expand Down
29 changes: 14 additions & 15 deletions media/webrtc/signaling/src/sdp/Sdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ class Sdp
public:
Sdp();

unsigned int GetVersion() const = 0;
virtual SdpOriginator GetOriginator() const = 0;
// Note: connection information is always retrieved from media sections
virtual SdpOrigin GetOrigin() const = 0;
virtual std::string GetSessionName() const = 0;
virtual Maybe<SdpBandwidth> GetBandwidth(const std::string& type) const = 0;
// Note: connection information is always retrieved from media sections
virtual std::string GetBandwidth(std::string type) const = 0;

const SdpAttributeList &GetAttributeList() const;
SdpAttributeList &GetAttributeList();
virtual const SdpAttributeList &GetAttributeList() const = 0;
virtual SdpAttributeList &GetAttributeList() = 0;

uint16_t GetMediaSectionCount() const;
const SdpMediaSection &GetMediaSection(uint16_t level) const;
SdpMediaSection &GetMediaSection(uint16_t level);
virtual uint16_t GetMediaSectionCount() const = 0;
virtual const SdpMediaSection &GetMediaSection(uint16_t level) const = 0;
virtual SdpMediaSection &GetMediaSection(uint16_t level) = 0;

protected:
virtual ~Sdp() {};
Expand All @@ -45,12 +44,12 @@ class Sdp
class SdpOrigin
{
public:
std::string GetUsername() const;
uint64_t GetSessionId() const;
uint64_t GetSessionVersion() const;
sdp::NetType GetNetType() const;
sdp::AddrType GetAddrType() const;
std::string GetAddress() const;
virtual std::string GetUsername() const = 0;
virtual uint64_t GetSessionId() const = 0;
virtual uint64_t GetSessionVersion() const = 0;
virtual sdp::NetType GetNetType() const = 0;
virtual sdp::AddrType GetAddrType() const = 0;
virtual std::string GetAddress() const = 0;
};

}
Expand Down
Loading

0 comments on commit 45706ca

Please sign in to comment.