.\"## .\" $XConsortium: p301,v 5.2 94/04/17 20:57:56 rws Exp $ .\"## .\"## $XMCOPY .\"## Copyright (c) 1990, 1991 by Sun Microsystems, Inc. .\"## .\"## All Rights Reserved .\"## .\"## Permission to use, copy, modify, and distribute this software and its .\"## documentation for any purpose and without fee is hereby granted, .\"## provided that the above copyright notice appear in all copies and that .\"## both that copyright notice and this permission notice appear in .\"## supporting documentation, and that the name of Sun Microsystems, .\"## not be used in advertising or publicity .\"## pertaining to distribution of the software without specific, written .\"## prior permission. .\"## .\"## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, .\"## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO .\"## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR .\"## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF .\"## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR .\"## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\"## PERFORMANCE OF THIS SOFTWARE. .TH "SET CONFLICT RESOLUTION" 3P "29 February 1991" .SH NAME SET CONFLICT RESOLUTION \- set the conflict resolution flags .IX "Archive Files" "SET CONFLICT RESOLUTION" .SH SYNOPSIS .SS C Syntax .ft B .ta 1.25i 3i .nf void pset_conf_res ( archival_resolution, retrieval_resolution ) Pconf_res archival_resolution; \fIarchival conflict resolution\fP Pconf_res retrieval_resolution; \fIretrieval conflict resolution\fP .fi .ft R .SS Required PHIGS Operating States (PHOP, *, *, *) .SH DESCRIPTION .SS Purpose The \s-2SET CONFLICT RESOLUTION\s+2 subroutine sets the conflict resolution flags controlling how structure archival and retrieval conflicts are resolved. The flag value can be \s-2MAINTAIN\s+2, \s-2ABANDON\s+2, or \s-2UPDATE\s+2. .LP The default value of the archival conflict resolution flag is \s-2UPDATE\s+2. The default value of the retrieval conflict resolution flag is \s-2ABANDON\s+2. .SS C Input Parameters .IP \fIarchival_resolution\fP An enumerated variable specifying the value of the archival conflict resolution flag. .IP \fIretrieval_resolution\fP An enumerated variable specifying the value of the retrieval conflict resolution flag. .LP Valid values (defined in phigs.h) for these two flags are: .sp .2 .ta .3i .nf PRES_MAINTAIN PRES_ABANDON PRES_UPD .fi .SS Execution The \s-2SET CONFLICT RESOLUTION\s+2 subroutine sets the conflict resolution flags in the \s-2PHIGS\s+2 workstation state list. The archival conflict resolution flag controls what happens when an attempt is made to archive structures whose identifiers already exist in the archive file. The retrieval conflict resolution flag controls what happens when an attempt is made to retrieve structures whose identifiers already exist in the Central Structure Store. .LP The flag values can be \s-2MAINTAIN\s+2, \s-2ABANDON\s+2, or \s-2UPDATE\s+2. A value of \s-2MAINTAIN\s+2 prevents conflicting structures from being overwritten; a value of \s-2UPDATE\s+2 allows conflicting structures to be overwritten; and a value of \s-2ABANDON\s+2 indicates that the entire archival or retrieval operation should be abandoned, with no changes made to the archive or the Central Structure Store if there are any conflicts. .SH ERRORS .IP 002 Ignoring function, function requires state (\s-2PHOP\s+2, \s-2*\s+2, \s-2*\s+2, \s-2*\s+2) .SH SEE ALSO .nf .IP .ta 0.5i .SM "ARCHIVE STRUCTURES (3P)" .SM "INQUIRE ALL CONFLICTING STRUCTURES (3P)" .SM "INQUIRE CONFLICTING STRUCTURES IN NETWORK (3P)" .SM "INQUIRE CONFLICT RESOLUTION (3P)" .SM "RETRIEVE STRUCTURES (3P)" .fi