/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * or http://www.opensolaris.org/os/licensing. * 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 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _FMD_PROTOCOL_H #define _FMD_PROTOCOL_H #pragma ident "%Z%%M% %I% %E% SMI" #include #include #include #ifdef __cplusplus extern "C" { #endif #define FMD_RSRC_CLASS "resource.sunos.fmd." #define FMD_RSRC_CLASS_LEN (sizeof (FMD_RSRC_CLASS) - 1) #define FMD_RSRC_ADDHRT FMD_RSRC_CLASS "clock.addhrtime" #define FMD_RSRC_ADDHRT_VERS1 1 #define FMD_RSRC_ADDHRT_DELTA "delta" #define FMD_FLT_NOSUB "defect.sunos.fmd.nosub" #define FMD_FLT_NODC "defect.sunos.fmd.nodiagcode" #define FMD_FLT_MOD "defect.sunos.fmd.module" #define FMD_FLT_CONF "defect.sunos.fmd.config" #define FMD_ERR_CLASS "ereport.sunos.fmd." #define FMD_ERR_MOD_MSG "msg" #define FMD_ERR_MOD_ERRNO "errno" #define FMD_ERR_MOD_ERRCLASS "errclass" struct fmd_module; /* see */ extern nvlist_t *fmd_protocol_authority(void); extern nvlist_t *fmd_protocol_fmri_module(struct fmd_module *); extern nvlist_t *fmd_protocol_fault(const char *, uint8_t, nvlist_t *, nvlist_t *, nvlist_t *); extern nvlist_t *fmd_protocol_suspects(nvlist_t *, const char *, const char *, uint_t, nvlist_t **, int); extern nvlist_t *fmd_protocol_resource(const char *, nvlist_t *, const char *, boolean_t, boolean_t, boolean_t, nvlist_t *); extern nvlist_t *fmd_protocol_fmderror(int, const char *, va_list); extern nvlist_t *fmd_protocol_moderror(struct fmd_module *, int, const char *); #ifdef __cplusplus } #endif #endif /* _FMD_PROTOCOL_H */