'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH sip_delete_start_line 3SIP "20 Jan 2007" "SunOS 5.11" "Session Initiation Protocol Library Functions" .SH NAME sip_delete_start_line, sip_delete_header, sip_delete_header_by_name, sip_delete_value \- delete a SIP header or a header value .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ] #include \fBint\fR \fIsip_delete_start_line\fR(\fBsip_msg_t\fR \fIsip_msg\fR); .fi .LP .nf \fBint\fR \fIsip_delete_header\fR(\fBsip_msg_t\fR \fIsip_header\fR); .fi .LP .nf \fBint\fR \fIsip_delete_header_by_name\fR(\fBsip_msg_t\fR \fImsg\fR, \fBchar *\fR\fIheader_name\fR); .fi .LP .nf \fBint\fR \fIsip_delete_value\fR(\fBsip_header_t\fR \fIsip_header\fR, \fBsip_header_value_t\fR \fIsip_header_value\fR); .fi .SH DESCRIPTION .sp .LP The \fBsip_delete_start_line()\fR function deletes the start line, a request or a response line, from the SIP message \fIsip_msg\fR. .sp .LP The \fBsip_delete_header()\fR function deletes the \fBSIP\fR header specified by \fIsip_header\fR from the associated \fBSIP\fR message \fIsip_msg\fR. .sp .LP The \fBsip_delete_header_by_name()\fR function deletes the \fBSIP\fR header name specified by \fIheader_name\fR (long or compact form) from the \fBSIP\fR message \fIsip_msg\fR. .sp .LP The \fBsip_delete_value()\fR deletes the \fBSIP\fR header value specified by \fIsip_header_value\fR from the \fBSIP\fR header \fIsip_header\fR. .sp .LP When a \fBSIP\fR header or value is deleted, the corresponding header or value is marked as deleted. Lookups ignore headers or values that are marked as deleted. .SH RETURN VALUES .sp .LP These functions return \fB0\fR on success and the appropriate error on failure. .sp .LP The value of \fBerrno\fR is not changed by these calls in the event of an error. .SH ERRORS .sp .LP On failure, the returned error could be one of the following: .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n .rt If any of the required input is \fBNULL\fR. .sp If the header or value to be deleted does not exist. .sp If the header or value to be deleted has already been deleted. .RE .sp .ne 2 .mk .na \fB\fBEPERM\fR\fR .ad .RS 10n .rt If the \fBSIP\fR message cannot be modified. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe .TE .SH SEE ALSO .sp .LP \fBlibsip\fR(3LIB)