1sdp_session_Ctoom_msutnri(c3aCtOiMoMnPUPTrIoLt)ocol Parser UtilitiessdpL_isbersasriyonF_utnoc_tsitorn(s3COMMPUTIL)
2
3
4

NAME

6       sdp_session_to_str - return a string representation of a session struc‐
7       ture
8

SYNOPSIS

10       cc [ flag...] file... -lcommputil [ library...]
11       #include <sdp.h>
12
13       char *sdp_session_to_str(const sdp_session_t *session,
14            int *error);
15
16

DESCRIPTION

18       The sdp_session_to_str() function returns the string representation  of
19       the  SDP session structure session. The caller is responsible for free‐
20       ing the returned string.
21
22
23       The function adds a CRLF at the end of each SDP field before  appending
24       that field to the string.
25

RETURN VALUES

27       The  sdp_session_to_str()  function returns the relevant string on suc‐
28       cess and NULL otherwise.
29
30
31       If error is non-null, the location pointed by error is set to 0 on suc‐
32       cess  or  the error value on failure. The value of errno is not changed
33       by these calls in the event of an error.
34

ERRORS

36       The sdp_session_to_str() function will fail if:
37
38       EINVAL    The input is null.
39
40
41       ENOMEM    A memory allocation failure occurred.
42
43

ATTRIBUTES

45       See attributes(5) for descriptions of the following attributes:
46
47
48
49
50       ┌─────────────────────────────┬─────────────────────────────┐
51       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │Interface Stability          │Committed                    │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │MT-Level                     │Safe                         │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       libcommputil(3LIB), attributes(5)
60
61
62
63SunOS 5.11                        12 Oct 2007   sdp_session_to_str(3COMMPUTIL)
Impressum