mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
The primary user is osmo-msc. This API's predecessor currently lives in osmo-msc.git and is now being moved here, in a matured form. Besides osmo-msc, any MGCP client program may need to handle SDP codecs. (Besides clients, osmo-mgw itself may use this SDP implementation to untangle parsing from the MGCP server code, in some distant future.) Change-Id: I2cec2667796dae91441ad9357d11854239880aea
12 lines
331 B
C
12 lines
331 B
C
/* Internal header for non-public API shared across .c files */
|
|
#pragma once
|
|
|
|
struct token {
|
|
const char *start;
|
|
const char *end;
|
|
};
|
|
|
|
/* Copy a string from [start,end[, return as talloc allocated under ctx in *dst.
|
|
* If *dst is non-NULL, talloc_free(*dst) first. */
|
|
void token_copy(void *ctx, char **dst, const struct token *t);
|