xref: /titanic_44/usr/src/lib/libpicl/llib-lpicl (revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe)
1/*
2 * CDDL HEADER START
3 *
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
7 * with the License.
8 *
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.
13 *
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]
19 *
20 * CDDL HEADER END
21 */
22/*LINTLIBRARY*/
23/*PROTOLIB1*/
24
25/*
26 * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
27 * All rights reserved.
28 */
29#pragma ident	"%Z%%M%	%I%	%E% SMI"
30
31#include <picl.h>
32
33int	picl_initialize(void);
34int	picl_shutdown(void);
35int  picl_get_root(picl_nodehdl_t *nodehandle);
36int  picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
37int  picl_get_propval_by_name(picl_nodehdl_t nodeh, const char *propname,
38			void *valbuf, size_t sz);
39int  picl_set_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
40int  picl_set_propval_by_name(picl_nodehdl_t nodeh, const char *propname,
41			void *valbuf, size_t sz);
42int  picl_get_propinfo(picl_prophdl_t proph, picl_propinfo_t *pi);
43int  picl_get_first_prop(picl_nodehdl_t nodeh, picl_prophdl_t *proph);
44int  picl_get_next_prop(picl_prophdl_t proph, picl_prophdl_t *nexth);
45int  picl_get_prop_by_name(picl_nodehdl_t nodeh, const char *nm,
46			picl_prophdl_t *ph);
47int  picl_get_next_by_row(picl_prophdl_t thish, picl_prophdl_t *proph);
48int  picl_get_next_by_col(picl_prophdl_t thish, picl_prophdl_t *proph);
49int  picl_wait(unsigned int secs);
50char *picl_strerror(int err);
51int  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));
54int  picl_get_propinfo_by_name(picl_nodehdl_t nodeh, const char *pname,
55		picl_propinfo_t *pinfo, picl_prophdl_t *proph);
56