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_HOLD_MSG 3SIP "Jan 25, 2007"
8 sip_hold_msg, sip_free_msg \- adds and removes a reference from a SIP message
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
15 \fBvoid\fR \fIsip_hold_msg\fR(\fBsip_msg_t\fR \fIsip_msg\fR);
20 \fBvoid\fR \fIsip_free_msg\fR(\fBsip_msg_t\fR \fIsip_msg\fR);
26 The \fBsip_hold_msg()\fR function adds a reference to the SIP message passed as
27 the argument. The reference is used to prevent the \fBSIP\fR message from being
31 The \fBsip_free_msg()\fR function is used to remove an added reference on the
32 \fBSIP\fR message passed as the argument. If this is the last reference on the
33 \fBSIP\fR message (i.e. the number of references on the \fBSIP\fR message is
34 \fB0\fR), the \fBSIP\fR message is destroyed and associated resources freed.
35 Freeing a \fBSIP\fR message does not set the \fIsip_msg\fR pointer to
36 \fINULL\fR. Applications should not expect the pointer to a freed \fBSIP\fR
37 message to be \fINULL\fR.
41 The value of \fBerrno\fR is not changed by these calls in the event of an
46 See \fBattributes\fR(5) for descriptions of the following attributes:
54 ATTRIBUTE TYPE ATTRIBUTE VALUE
56 Interface Stability Committed