1sip_get_header_valSuees(s3iSoInP)Initiation Protocol LibrarysFiupn_cgteito_nhseader_value(3SIP)
2
3
4

NAME

6       sip_get_header_value, sip_get_next_value - get a SIP header value
7

SYNOPSIS

9       cc [ flag ... ] file ... -lsip [ library ... ]
10       #include <sip.h>
11
12       const struct sip_value *sip_get_header_value
13            (const struct sip_header *sip_header, int *error);
14
15
16       const struct sip_value *sip_get_next_value
17            (sip_header_value_t old_value, int *error);
18
19

DESCRIPTION

21       The  sip_get_header_value() function returns the first valid value from
22       SIP header sip_header.
23
24
25       The sip_get_next_value() function returns the next valid value  follow‐
26       ing the SIP value old_value.
27

RETURN VALUES

29       These  functions  return the queried value on success and NULL on fail‐
30       ure.
31
32
33       The value of errno is not changed by these calls in  the  event  of  an
34       error.
35

ERRORS

37       If the error is non-null, one of the following values is set:
38
39       EINVAL    If  any of the required input is NULL or if the specified SIP
40                 header value is marked deleted.
41
42
43       EPROTO    If the returned SIP header value is invalid (i.e. the  parser
44                 encountered errors when parsing the value).
45
46
47
48       On success, the value of the location pointed to by error is set to 0.
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                     │MT-Safe                      │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       libsip(3LIB)
66
67
68
69SunOS 5.11                        25 Jan 2007       sip_get_header_value(3SIP)
Impressum