#ifndef _EFT_PLATFORM_H
#define _EFT_PLATFORM_H
#include <libnvpair.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <config.h>
#include <fm/fmd_api.h>
#include <fm/libtopo.h>
extern nvlist_t *Action_nvl;
void platform_init(void);
void platform_fini(void);
void platform_run_poller(const char *poller);
void platform_set_payloadnvp(nvlist_t *nvlp);
void platform_unit_translate(int, struct config *, const char *, nvlist_t **,
char *);
struct cfgdata *platform_config_snapshot(void);
void platform_restore_config(fmd_hdl_t *hdl, fmd_case_t *fmcase);
void platform_save_config(fmd_hdl_t *hdl, fmd_case_t *fmcase);
struct node *platform_getpath(nvlist_t *nvl);
char **platform_get_eft_files(void);
void platform_free_eft_files(char **);
int platform_call(struct node *np, struct lut **globals, struct config *croot,
struct arrow *arrowp, struct evalue *valuep);
int platform_confcall(struct node *np, struct lut **globals,
struct config *croot, struct arrow *arrowp, struct evalue *valuep);
int platform_payloadprop(struct node *np, struct evalue *valuep);
struct evalue *platform_payloadprop_values(const char *s, int *nvals);
int platform_path_exists(nvlist_t *fmri);
const struct ipath *platform_fault2ipath(nvlist_t *flt);
#ifdef __cplusplus
}
#endif
#endif