/*
* CDDL HEADER START
*
* 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.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _TOPO_PARSE_H
#define _TOPO_PARSE_H
#include <libnvpair.h>
#include <fm/topo_mod.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Plenty of room to hold string representation of an instance
* number
*/
/*
* Forward declaration
*/
struct tf_rdata;
struct tf_info;
/*
* This structure summarizes an enumerator as described by an xml
* topology file.
*/
typedef struct tf_edata {
} tf_edata_t;
/* properties and dependents off of an instance or a range */
typedef struct tf_pad {
} tf_pad_t;
typedef struct tf_idata {
} tf_idata_t;
/*
* This structure summarizes a topology node range as described by a
* topology file.
*/
typedef struct tf_rdata {
} tf_rdata_t;
/*
* While we're parsing we need a handy way to pass around the data
* related to what we're currently parsing, what topology nodes may be
* affected, etc.
*/
typedef struct tf_info {
/* UUID ? */
} tf_info_t;
/*
* We store properties using nvlists as an intermediate form. The
* following defines are names for fields in this intermediate form.
*/
/*
* Valid .xml element and attribute names
*/
topo_stability_t *);
#ifdef __cplusplus
}
#endif
#endif /* _TOPO_PARSE_H */