mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
Add new noinst-library libosmo-sdp.la. It will be used by - osmo-mgw - libosmo-mgcp-client - callers of libosmo-mgcp-client may use SDP message parsing (osmo-msc) The API will, with upcoming patches: - parse and compose SDP fmtp strings - manage SDP codecs and codec lists (like 'AMR:octet-align=1#112') - parse and compose entire SDP messages In this patch: parse and compose SDP fmtp strings. Add libosmo-sdp build fu. Add sdp/fmtp.h and sdp/sdp_strings.h. Add tests/sdp/sdp_fmtp_test.c. Change-Id: I6128852f4d249e90319f43d6cd6ed0a9a2ed0430
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
/* Public API for codec management in SDP messages: managing SDP fmtp strings. */
|
|
/*
|
|
* (C) 2024 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
|
|
* All Rights Reserved.
|
|
*
|
|
* Author: Neels Janosch Hofmeyr <nhofmeyr@sysmocom.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*
|
|
* 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, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
bool osmo_sdp_fmtp_get_val(char *val, size_t val_size, const char *fmtp, const char *option_name);
|
|
int64_t osmo_sdp_fmtp_get_int(const char *fmtp, const char *option_name, int64_t default_value);
|
|
|
|
bool osmo_sdp_fmtp_amr_is_octet_aligned(const char *fmtp);
|