xref: /onnv-gate/usr/src/lib/fm/topo/libtopo/common/topo_file.h (revision 5068:06d88145c7f7)
11414Scindi /*
21414Scindi  * CDDL HEADER START
31414Scindi  *
41414Scindi  * The contents of this file are subject to the terms of the
51414Scindi  * Common Development and Distribution License (the "License").
61414Scindi  * You may not use this file except in compliance with the License.
71414Scindi  *
81414Scindi  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91414Scindi  * or http://www.opensolaris.org/os/licensing.
101414Scindi  * See the License for the specific language governing permissions
111414Scindi  * and limitations under the License.
121414Scindi  *
131414Scindi  * When distributing Covered Code, include this CDDL HEADER in each
141414Scindi  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151414Scindi  * If applicable, add the following below this CDDL HEADER, with the
161414Scindi  * fields enclosed by brackets "[]" replaced with your own identifying
171414Scindi  * information: Portions Copyright [yyyy] [name of copyright owner]
181414Scindi  *
191414Scindi  * CDDL HEADER END
201414Scindi  */
211414Scindi 
221414Scindi /*
23*5068Srobj  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
241414Scindi  * Use is subject to license terms.
251414Scindi  */
261414Scindi 
271414Scindi #ifndef _TOPO_FILE_H
281414Scindi #define	_TOPO_FILE_H
291414Scindi 
301414Scindi #pragma ident	"%Z%%M%	%I%	%E% SMI"
311414Scindi 
321414Scindi #include <topo_parse.h>
331414Scindi 
341414Scindi #ifdef	__cplusplus
351414Scindi extern "C" {
361414Scindi #endif
371414Scindi 
381414Scindi typedef struct topo_file {
393062Scindi 	tf_info_t *tf_tmap;		/* topology map file info */
403062Scindi 	char *tf_filenm;		/* topology file name */
413062Scindi 	topo_mod_t *tf_mod;		/* scheme-specific builtin mod */
421414Scindi } topo_file_t;
431414Scindi 
44*5068Srobj extern int topo_file_load(topo_mod_t *, tnode_t *, const char *, const char *,
45*5068Srobj     int);
463062Scindi 
471414Scindi #ifdef	__cplusplus
481414Scindi }
491414Scindi #endif
501414Scindi 
511414Scindi #endif	/* _TOPO_FILE_H */
52