PayloadType.cpp 1.29 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
PayloadType.cpp
Copyright (C) 2015  Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
15 16 17 18 19
*/

#include "ApiLock.h"
#include "PayloadType.h"

20
BelledonneCommunications::Linphone::Native::PayloadType::PayloadType(::PayloadType *payload)
21 22 23 24
	: payload(payload)
{
}

25
BelledonneCommunications::Linphone::Native::PayloadType::~PayloadType()
26 27 28
{
}

29
Platform::String^ BelledonneCommunications::Linphone::Native::PayloadType::MimeType::get()
30 31
{
	API_LOCK;
32
	return Utils::cctops(payload_type_get_mime(this->payload));
33 34
}

35
int BelledonneCommunications::Linphone::Native::PayloadType::ClockRate::get()
36 37
{
	API_LOCK;
38
	return payload_type_get_rate(this->payload);
39
}