4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
26 * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
27 * All rights reserved.
29 #pragma ident "%Z%%M% %I% %E% SMI"
33 int picl_initialize(void);
34 int picl_shutdown(void);
35 int picl_get_root(picl_nodehdl_t *nodehandle);
36 int picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
37 int picl_get_propval_by_name(picl_nodehdl_t nodeh, const char *propname,
38 void *valbuf, size_t sz);
39 int picl_set_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
40 int picl_set_propval_by_name(picl_nodehdl_t nodeh, const char *propname,
41 void *valbuf, size_t sz);
42 int picl_get_propinfo(picl_prophdl_t proph, picl_propinfo_t *pi);
43 int picl_get_first_prop(picl_nodehdl_t nodeh, picl_prophdl_t *proph);
44 int picl_get_next_prop(picl_prophdl_t proph, picl_prophdl_t *nexth);
45 int picl_get_prop_by_name(picl_nodehdl_t nodeh, const char *nm,
47 int picl_get_next_by_row(picl_prophdl_t thish, picl_prophdl_t *proph);
48 int picl_get_next_by_col(picl_prophdl_t thish, picl_prophdl_t *proph);
49 int picl_wait(unsigned int secs);
50 char *picl_strerror(int err);
51 int picl_walk_tree_by_class(picl_nodehdl_t rooth,
52 const char *classname, void *c_args,
53 int (*callback_fn)(picl_nodehdl_t hdl, void *args));
54 int picl_get_propinfo_by_name(picl_nodehdl_t nodeh, const char *pname,
55 picl_propinfo_t *pinfo, picl_prophdl_t *proph);