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_TABLE 3PICLTREE "Mar 28, 2000"
8 ptree_create_table, ptree_add_row_to_table \- create a table object
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpicltree\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBptree_create_table\fR(\fBpicl_prophdl_t *\fR\fItbl_hdl\fR);
20 \fBint\fR \fBptree_add_row_to_table\fR(\fBpicl_prophdl_t\fR \fItbl_hdl\fR, \fBint\fR \fInprops\fR,
21 \fBpicl_prophdl_t *\fR\fIproph\fR);
27 The \fBptree_create_table()\fR function creates a table object and returns the
28 handle of the table in \fItbl_hdl\fR.
31 The \fBptree_add_row_to_table()\fR function adds a row of properties to the
32 table specified by \fItbl_hdl\fR. The handles of the properties of the row are
33 specified in the \fIproph\fR array and \fInprops\fR specifies the number of
34 handles in the array. The number of columns in the table is determined from the
35 first row added to the table. If extra column values are specified in
36 subsequent rows, they are ignored. The row is appended to the end of the table.
40 Upon successful completion, \fB0\fR is returned. On failure, a non-negative
41 integer is returned to indicate an error.
44 \fBPICL_STALEHANDLE\fR is returned if the handle is no longer valid. This
45 occurs if the PICL tree was refreshed or reinitialized.
48 \fBPICL_INVALIDHANDLE\fR is returned if the specified handle never existed.
53 \fB\fBPICL_INVALIDARG\fR\fR
62 \fB\fBPICL_NOTPROP\fR\fR
71 \fB\fBPICL_NOTTABLE\fR\fR
80 \fB\fBPICL_INVALIDHANDLE\fR\fR
89 \fB\fBPICL_STALEHANDLE\fR\fR
98 \fB\fBPICL_FAILURE\fR\fR
101 General system failure
107 See \fBattributes\fR(5) for descriptions of the following attributes:
115 ATTRIBUTE TYPE ATTRIBUTE VALUE
117 Interface Stability Evolving