1sdp_find_medCioam(m3uCnOiMcMaPtUiToInL)Protocol Parser Utilities Lisbdrpa_rfyinFdu_nmcetdiioan(s3COMMPUTIL)
2
3
4

NAME

6       sdp_find_media - find the specified media from the media list
7

SYNOPSIS

9       cc [ flag...] file... -lcommputil [ library...]
10       #include <sdp.h>
11
12       sdp_media_t *sdp_find_media(sdp_media_t *media, const char *name);
13
14

DESCRIPTION

16       The  sdp_find_media()  function  searches  the media list for the media
17       specified by name. If the media is found it returns the pointer to  the
18       media. Otherwise it returns NULL.
19

RETURN VALUES

21       The sdp_find_media() function returns the media (sdp_media_t *) on suc‐
22       cess and NULL when the search fails or the mandatory  input  parameters
23       are NULL.
24

EXAMPLES

26       Example  1 An (incomplete) SDP description that contains two media sec‐
27       tions: audio and video.
28
29         m=audio 49170 RTP/AVP 0 8
30         a=rtpmap:0 PCMU/8000
31         a=rtpmap:8 PCMA/8000
32         m=video 51372 RTP/AVP 31 32
33         a=rtpmap:31 H261/90000
34         a=rtpmap:32 MPV/90000
35
36         /*
37          * Assuming that above description is parsed using sdp_parse() and that
38          * the parsed structure is in "session" sdp_session_t structure.
39          */
40
41         sdp_media_t     *my_media;
42         my_media = sdp_find_media(session->s_media, "video");
43
44         /*
45          * my_media now points to the structure containg video media section
46          * information
47          */
48
49

ATTRIBUTES

51       See attributes(5) for descriptions of the following attributes:
52
53
54
55
56       ┌─────────────────────────────┬─────────────────────────────┐
57       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │Interface Stability          │Committed                    │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │MT-Level                     │Safe                         │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       libcommputil(3LIB), sdp_parse(3COMMPUTIL), attributes(5)
66
67
68
69SunOS 5.11                        12 Oct 2007       sdp_find_media(3COMMPUTIL)
Impressum