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 PICL_GET_FIRST_PROP 3PICL "Mar 28, 2000"
8 picl_get_first_prop, picl_get_next_prop \- get a property handle of a node
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lpicl\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBpicl_get_first_prop\fR(\fBpicl_nodehdl_t\fR \fInodeh\fR,
16 \fBpiclprop_hdl_t *\fR\fIproph\fR);
21 \fBint\fR \fBpicl_get_next_prop\fR(\fBpicl_prophdl_t\fR \fIproph\fR,
22 \fBpicl_prophdl_t *\fR\fInextprop\fR);
28 The \fBpicl_get_first_prop()\fR function gets the handle of the first property
29 of the node specified by \fInodeh\fR and copies it into the location given by
33 The \fBpicl_get_next_prop()\fR function gets the handle of the next property
34 after the one specified by \fIproph\fR from the property list of the node, and
35 copies it into the location specified by \fInextprop\fR.
38 If there are no more properties, this function returns \fBPICL_ENDOFLIST\fR.
42 Upon successful completion, \fB0\fR is returned. On failure, a non-negative
43 integer is returned to indicate an error.
46 \fBPICL_ENDOFLIST\fR is returned to indicate that there are no more properties.
49 \fBPICL_STALEHANDLE\fR is returned if the handle is no longer valid. This
50 occurs if the PICL tree was refreshed or reinitialized.
53 \fBPICL_INVALIDHANDLE\fR is returned if the specified handle never existed.
54 This error may be returned for a previously valid handle if the daemon was
55 brought down and restarted. When this occurs a client must revalidate any saved
61 \fB\fBPICL_NOTINITIALIZED\fR\fR
64 Session not initialized
70 \fB\fBPICL_NORESPONSE\fR\fR
79 \fB\fBPICL_NOTNODE\fR\fR
88 \fB\fBPICL_NOTPROP\fR\fR
97 \fB\fBPICL_INVALIDHANDLE\fR\fR
106 \fB\fBPICL_STALEHANDLE\fR\fR
115 \fB\fBPICL_FAILURE\fR\fR
118 General system failure
124 \fB\fBPICL_ENDOFLIST\fR\fR
133 See \fBattributes\fR(5) for descriptions of the following attributes:
141 ATTRIBUTE TYPE ATTRIBUTE VALUE
149 \fBpicl_get_prop_by_name\fR(3PICL), \fBattributes\fR(5)