2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SIP_GET_HEADER_VALUE 3SIP "Jan 25, 2007"
8 sip_get_header_value, sip_get_next_value \- get a SIP header value
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
15 \fBconst struct sip_value *\fR\fIsip_get_header_value\fR
16 (\fBconst struct sip_header *\fR\fIsip_header\fR, \fBint *\fR\fIerror\fR);
21 \fBconst struct sip_value *\fR\fIsip_get_next_value\fR
22 (\fBsip_header_value_t\fR \fIold_value\fR, \fBint *\fR\fIerror\fR);
28 The \fBsip_get_header_value()\fR function returns the first valid value from
29 \fBSIP\fR header \fIsip_header\fR.
32 The \fBsip_get_next_value()\fR function returns the next valid value following
33 the \fBSIP\fR value \fIold_value\fR.
37 These functions return the queried value on success and \fINULL\fR on failure.
40 The value of \fBerrno\fR is not changed by these calls in the event of an
45 If the error is non-null, one of the following values is set:
52 If any of the required input is \fINULL\fR or if the specified \fBSIP\fR header
53 value is marked deleted.
62 If the returned \fBSIP\fR header value is invalid (i.e. the parser encountered
63 errors when parsing the value).
68 On success, the value of the location pointed to by \fIerror\fR is set to
73 See \fBattributes\fR(5) for descriptions of the following attributes:
81 ATTRIBUTE TYPE ATTRIBUTE VALUE
83 Interface Stability Committed