mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
add libosmo-sdp: add codec_list_is_empty()
Change-Id: I5e80f5737f22dc81ac16448fc59937330d24432e
This commit is contained in:
@@ -66,3 +66,4 @@ void osmo_sdp_codec_list_intersection(struct osmo_sdp_codec_list *dst, const str
|
||||
bool translate_payload_type_numbers);
|
||||
|
||||
struct osmo_sdp_codec *osmo_sdp_codec_list_by_payload_type(struct osmo_sdp_codec_list *codec_list, int8_t payload_type);
|
||||
bool osmo_sdp_codec_list_is_empty(const struct osmo_sdp_codec_list *codec_list);
|
||||
|
@@ -358,3 +358,10 @@ struct osmo_sdp_codec *osmo_sdp_codec_list_by_payload_type(struct osmo_sdp_codec
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool osmo_sdp_codec_list_is_empty(const struct osmo_sdp_codec_list *codec_list)
|
||||
{
|
||||
if (!codec_list)
|
||||
return true;
|
||||
return llist_empty(&codec_list->list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user