2 .\" Copyright (c) 2000, 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 PTREE_CREATE_NODE 3PICLTREE "Mar 28, 2000"
8 ptree_create_node, ptree_destroy_node \- create or destroy a node
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpicltree\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBptree_create_node\fR(\fBchar *\fR\fIname\fR, \fBchar *\fR\fIclname\fR,
16 \fBpicl_nodehdl_t *\fR\fInodeh\fR);
21 \fBint\fR \fBptree_destroy_node\fR(\fBpicl_nodehdl_t\fR \fInodeh\fR);
27 The \fBptree_create_node()\fR function creates a node and sets the "name"
28 property value to the string specified in \fIname\fR and the "class" property
29 value to the string specified in \fIclname\fR. The handle of the new node is
30 copied into the location given by \fInodeh\fR.
33 The \fBptree_destroy_node()\fR function destroys the node specified by
34 \fInodeh\fR and frees up any allocated space. The node to be destroyed must
35 have been previously deleted by ptree_delete_node (see
36 \fBptree_add_node\fR(3PICLTREE)). Otherwise, \fBPICL_CANTDESTROY\fR is
41 Upon successful completion, \fB0\fR is returned. On failure, a non-negative
42 integer is returned to indicate an error.
45 \fBPICL_STALEHANDLE\fR is returned if the handle is no longer valid. This
46 occurs if the PICL tree was refreshed or reinitialized.
49 \fBPICL_INVALIDHANDLE\fR is returned if the specified handle never existed.
54 \fB\fBPICL_INVALIDARG\fR\fR
63 \fB\fBPICL_VALUETOOBIG\fR\fR
66 Value exceeds maximum size
72 \fB\fBPICL_NOTSUPPORTED\fR\fR
75 Property version not supported
81 \fB\fBPICL_CANTDESTROY\fR\fR
84 Attempting to destroy before delete
90 \fB\fBPICL_TREEBUSY\fR\fR
99 \fB\fBPICL_NOTNODE\fR\fR
108 \fB\fBPICL_INVALIDHANDLE\fR\fR
117 \fB\fBPICL_STALEHANDLE\fR\fR
126 \fB\fBPICL_FAILURE\fR\fR
129 General system failure
135 See \fBattributes\fR(5) for descriptions of the following attributes:
143 ATTRIBUTE TYPE ATTRIBUTE VALUE
145 Interface Stability Evolving
153 \fBptree_add_node\fR(3PICLTREE), \fBattributes\fR(5)