'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .\" 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. .\" 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. .\" 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] .TH SIP_HOLD_DIALOG 3SIP "Jan 25, 2007" .SH NAME sip_hold_dialog, sip_release_dialog \- hold/release reference on a dialog .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ] #include \fBvoid\fR \fIsip_hold_dialog\fR(\fBsip_dialog_t\fR \fIdialog\fR); .fi .LP .nf \fBvoid\fR \fIsip_release_dialog\fR(\fBsip_dialog_t\fR \fIdialog\fR); .fi .SH DESCRIPTION .sp .LP For functions that return a pointer of type \fBsip_str_t\fR, \fBsip_str_t\fR is supplied by: .sp .in +2 .nf typedef struct sip_str { char *sip_str_ptr; int sip_str_len; }sip_str_t; .fi .in -2 .sp .LP The \fIsip_str_ptr\fR parameter points to the start of the returned value and \fIsip_str_len\fR supplies the length of the returned value. .sp .LP The \fBsip_hold_dialog()\fR function is used to hold a reference on the \fIdialog\fR. A dialog is not freed if there are any references on it. .sp .LP The \fBsip_release_dialog()\fR function is used to release a reference in the \fIdialog\fR. If the reference in a dialog drops to \fB0\fR and it is in \fBSIP_DLG_DESTROYED\fR state, it is freed. .SH RETURN VALUES .sp .LP The value of \fBerrno\fR is not changed by these calls in the event of an error. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ MT-Level MT-Safe .TE .SH SEE ALSO .sp .LP .BR libsip (3LIB)