fabric-xlate.c revision b344f6b3aaff135e766e22b3d18489fe22a74198
/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <libxml/xpathInternals.h>
#include "fabric-xlate.h"
#define XMLTOPOFILE "/tmp/fab-xlate-topo.xml"
char fab_buf[FM_MAX_CLASS];
/* Static FM Topo XML Format and XML XPath Context */
static int fab_valid_topo = 0;
static void
{
int err = 0;
}
}
if (fab_xpathCtx)
if (fab_doc)
/* Load xml document */
/* Init xpath */
fab_valid_topo = 1;
}
/*ARGSUSED*/
static void
{
if (!fab_valid_topo)
return;
}
} else {
"ereport.io.pciex.rc.epkt")) {
} else {
}
}
}
/* ARGSUSED */
static void
{
fab_valid_topo = 0;
}
static const fmd_hdl_ops_t fmd_ops = {
fab_recv, /* fmdo_recv */
NULL, /* fmdo_timeout */
NULL, /* fmdo_close */
NULL, /* fmdo_stats */
NULL, /* fmdo_gc */
NULL, /* fmdo_send */
fab_topo, /* fmdo_topo */
};
static const fmd_hdl_info_t fmd_info = {
};
void
{
return;
/* Init libxml */
}
void
{
/* Fini xpath */
if (fab_xpathCtx)
/* Free xml document */
if (fab_doc)
/* Fini libxml */
}