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_PARAM_VALUE 3SIP "Jan 25, 2007"
8 sip_get_param_value, sip_get_params, sip_is_param_present \- get parameter
9 information for a SIP header value
13 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
16 \fBconst sip_str_t *\fR\fIsip_get_param_value\fR
17 (\fBsip_header_value_t\fR \fIheader_value\fR, \fBchar *\fR\fIparam_name\fR, \fBint *\fR\fIerror\fR);
22 \fBconst sip_param_t *\fR\fIsip_get_params\fR
23 (\fBsip_header_value_t\fR \fIheader_value\fR, \fBint *\fR\fIerror\fR);;
28 \fBboolean_t\fR \fIsip_is_param_present\fR
29 (\fBconst sip_param_t *\fR\fIparam_list\fR, \fBchar *\fR\fIparam_name\fR, \fBint\fR \fIparam_len\fR);
35 The \fBsip_get_param_value()\fR function returns the value for the parameter
36 name specified by \fIparam_name\fR from the \fBSIP\fR header value
40 For functions that return a pointer of type \fBsip_str_t\fR, \fBsip_str_t\fR is
45 typedef struct sip_str {
54 The \fIsip_str_ptr\fR parameter points to the start of the returned value and
55 \fIsip_str_len\fR supplies the length of the returned value.
58 The \fBsip_get_params()\fR function returns the parameter list, if any, for the
59 \fBSIP\fR header value \fIheader_value\fR.
62 The \fBsip_is_param_present()\fR function returns \fBB_TRUE\fR if the parameter
63 specified by \fIparam_name\fR of length supplied in \fIparam_len\fR is present
64 in the parameter list, \fIparam_list\fR. Otherwise, it returns \fBB_FALSE\fR.
68 With the exception of \fBsip_is_param_present()\fR, these functions return the
69 queried value on success and \fBNULL\fR on failure.
72 The value of \fBerrno\fR is not changed by these calls in the event of an
77 If the error is non-null, one of the following values is set:
84 If any of the required input is \fBNULL\fR or if the specified \fBSIP\fR header
85 value is marked deleted.
94 If the returned \fBSIP\fR header value is invalid (i.e. the parser encountered
95 errors when parsing the value).
100 On success, the value of the location pointed to by \fIerror\fR is set to
105 See \fBattributes\fR(5) for descriptions of the following attributes:
113 ATTRIBUTE TYPE ATTRIBUTE VALUE
115 Interface Stability Committed