1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 * 22 * Copyright 1996 Sun Microsystems, Inc. All Rights Reserved. 23 * Use is subject to license terms. 24 */ 25 26#ifndef _MADMAN_TRAP_H_ 27#define _MADMAN_TRAP_H_ 28 29#pragma ident "%Z%%M% %I% %E% SMI" 30 31/***** GLOBAL CONSTANTS *****/ 32 33 34/* specific trap numbers */ 35 36#define TRAP_APPL_ALARM 1 37#define TRAP_MTA_ALARM 2 38#define TRAP_MSG_ALARM 3 39 40 41/* alarm severity */ 42 43#define SEVERITY_LOW 1 44#define SEVERITY_MEDIUM 2 45#define SEVERITY_HIGH 3 46 47 48/***** GLOBAL FUNCTIONS ******/ 49 50extern void send_trap_appl_status_changed(int applIndex, char *applName, int applOperStatus); 51extern void send_trap_appl_alarm(int applIndex, char *applName, int alarmId, int alarmSeverity, char *alarmDescr); 52 53extern char *alarmSeverity_string(int severity); 54 55 56#endif 57