fmd_protocol.h revision 44743693dce3212f5edba623e0cb0327bd4337a3
/*
* 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 2007 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 <libnvpair.h>
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
#define FMD_CTL_ADDHRT_VERS1 1
#define FMD_CTL_ADDHRT_DELTA "delta"
/*
* The FMD_FLT_* events still use defect.sunos.* for now: a future registry
* putback should define all fmd events and convert these to defect.fm.fmd.*
*/
#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.fm.fmd."
#define FMD_ERR_MOD_MSG "msg"
#define FMD_ERR_MOD_ERRNO "errno"
#define FMD_ERR_MOD_ERRCLASS "errclass"
struct fmd_module; /* see <fmd_module.h> */
extern nvlist_t *fmd_protocol_authority(void);
extern nvlist_t *fmd_protocol_fault(const char *,
struct timeval *);
struct timeval *);
const char *, uint8_t);
const char *, uint8_t, const char *);
const char *, uint8_t, const char *);
#ifdef __cplusplus
}
#endif
#endif /* _FMD_PROTOCOL_H */