1sdp_delete_mCeodmimau(n3iCcOaMtMiPoUnTIPLr)otocol Parser UtilitiessLdipb_rdaerlyetFeu_nmcetdiioan(s3COMMPUTIL)
2
3
4
6 sdp_delete_media, sdp_delete_attribute - delete the specified media or
7 attribute from the appropriate list
8
10 cc [ flag...] file... -lcommputil [ library...]
11 #include <sdp.h>
12
13 int sdp_delete_media(sdp_media_t **l_media, sdp_media_t *media);
14
15
16 int sdp_delete_attribute(sdp_attr_t **l_attr, sdp_attr_t *attr);
17
18
20 The sdp_delete_media() function deletes the specified media from the
21 media list. It is similar to deleting a node in a linked list. The
22 function first finds the media that needs to be deleted using
23 sdp_find_media(3COMMPUTIL). The found media is then passed to
24 sdp_delete_media() to delete it. The function frees the memory allo‐
25 cated to media structure after deleting it.
26
27
28 The sdp_delete_attribute() function deletes the specified attribute
29 from the attribute list. It is similar to deleting a node in a linked
30 list. The function first finds the attribute that needs to be deleted
31 using sdp_find_media_rtpmap(3COMMPUTIL) or sdp_find_attribute(3COMM‐
32 PUTIL). The found attribute is then passed to sdp_delete_attribute() to
33 delete it. The function frees the memory allocated to attribute struc‐
34 ture after deleting it.
35
37 Upon successful completion, these functions return 0. Otherwise, the
38 appropriate error value is returned. The value of errno is not changed
39 by these calls in the event of an error.
40
42 These functions will fail if:
43
44 EINVAL The mandatory input parameters are not provided or are NULL.
45
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌─────────────────────────────┬─────────────────────────────┐
54 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Interface Stability │Committed │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │MT-Level │Safe │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 libcommputil(3LIB), sdp_find_attribute(3COMMPUTIL),
63 sdp_find_media(3COMMPUTIL), sdp_find_media_rtpmap(3COMMPUTIL),
64 attributes(5)
65
66
67
68SunOS 5.11 12 Oct 2007 sdp_delete_media(3COMMPUTIL)