141 return (a != NULL) ? a->
value : NULL;
210 return (a != NULL) ? a->
value : NULL;
static const char * vlc_sdp_media_attr_value(const struct vlc_sdp_media *media, const char *name)
Returns a media attribute value.
Definition: sdp.h:137
static const char * vlc_sdp_attr_value(const struct vlc_sdp *sdp, const char *name)
Returns a session attribute value.
Definition: sdp.h:207
static const struct vlc_sdp_conn * vlc_sdp_media_conn(const struct vlc_sdp_media *media)
Returns the media connection address list.
Definition: sdp.h:158
static const struct vlc_sdp_attr * vlc_sdp_attr_get(const struct vlc_sdp *sdp, const char *name)
Gets a session attribute by name.
Definition: sdp.h:173
void vlc_sdp_free(struct vlc_sdp *sdp)
Destroys a parsed SDP session descriptor.
Definition: sdp.c:287
struct vlc_sdp * vlc_sdp_parse(const char *str, size_t length)
Parses an SDP session descriptor.
Definition: sdp.c:303
static const struct vlc_sdp_attr * vlc_sdp_media_attr_get(const struct vlc_sdp_media *media, const char *name)
Gets a media attribute by name.
Definition: sdp.h:102
const struct vlc_sdp_attr * vlc_sdp_attr_first_by_name(struct vlc_sdp_attr *const *ap, const char *name)
Definition: sdp.c:277
static bool vlc_sdp_attr_present(const struct vlc_sdp *sdp, const char *name)
Checks if a session attribute is present.
Definition: sdp.h:189
static bool vlc_sdp_media_attr_present(const struct vlc_sdp_media *media, const char *name)
Checks if a median attribute is present.
Definition: sdp.h:118
const char name[16]
Definition: httpd.c:1281
SDP attribute.
Definition: sdp.h:59
struct vlc_sdp_attr * next
Definition: sdp.h:60
char name[]
Definition: sdp.h:62
const char * value
Definition: sdp.h:61
SDP connection address.
Definition: sdp.h:67
int family
Definition: sdp.h:69
char addr[]
Definition: sdp.h:72
unsigned char ttl
Definition: sdp.h:70
unsigned short addr_count
Definition: sdp.h:71
struct vlc_sdp_conn * next
Definition: sdp.h:68
SDP session descriptor.
Definition: sdp.h:146
struct vlc_sdp_media * media
Definition: sdp.h:151
char * info
Definition: sdp.h:148
char * name
Definition: sdp.h:147
struct vlc_sdp_attr * attrs
Definition: sdp.h:150
struct vlc_sdp_conn * conn
Definition: sdp.h:149