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_DELETE_START_LINE 3SIP "Jan 20, 2007"
8 sip_delete_start_line, sip_delete_header, sip_delete_header_by_name,
9 sip_delete_value \- delete a SIP header or a header value
13 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
16 \fBint\fR \fIsip_delete_start_line\fR(\fBsip_msg_t\fR \fIsip_msg\fR);
21 \fBint\fR \fIsip_delete_header\fR(\fBsip_msg_t\fR \fIsip_header\fR);
26 \fBint\fR \fIsip_delete_header_by_name\fR(\fBsip_msg_t\fR \fImsg\fR,
27 \fBchar *\fR\fIheader_name\fR);
32 \fBint\fR \fIsip_delete_value\fR(\fBsip_header_t\fR \fIsip_header\fR,
33 \fBsip_header_value_t\fR \fIsip_header_value\fR);
39 The \fBsip_delete_start_line()\fR function deletes the start line, a request or
40 a response line, from the SIP message \fIsip_msg\fR.
43 The \fBsip_delete_header()\fR function deletes the \fBSIP\fR header specified
44 by \fIsip_header\fR from the associated \fBSIP\fR message \fIsip_msg\fR.
47 The \fBsip_delete_header_by_name()\fR function deletes the \fBSIP\fR header
48 name specified by \fIheader_name\fR (long or compact form) from the \fBSIP\fR
49 message \fIsip_msg\fR.
52 The \fBsip_delete_value()\fR deletes the \fBSIP\fR header value specified by
53 \fIsip_header_value\fR from the \fBSIP\fR header \fIsip_header\fR.
56 When a \fBSIP\fR header or value is deleted, the corresponding header or value
57 is marked as deleted. Lookups ignore headers or values that are marked as
62 These functions return \fB0\fR on success and the appropriate error on failure.
65 The value of \fBerrno\fR is not changed by these calls in the event of an
70 On failure, the returned error could be one of the following:
77 If any of the required input is \fBNULL\fR.
79 If the header or value to be deleted does not exist.
81 If the header or value to be deleted has already been deleted.
90 If the \fBSIP\fR message cannot be modified.
96 See \fBattributes\fR(5) for descriptions of the following attributes:
104 ATTRIBUTE TYPE ATTRIBUTE VALUE
106 Interface Stability Committed