Debian Codegraph @

agent/mibgroup/Rmon/event.h

raw
1 /**************************************************************
2 * Copyright (C) 2001 Alex Rozin, Optical Access
3 *
4 * All Rights Reserved
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted,
8 * provided that the above copyright notice appear in all copies and that
9 * both that copyright notice and this permission notice appear in
10 * supporting documentation.
11 *
12 * ALEX ROZIN DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
13 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
14 * ALEX ROZIN BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
15 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
16 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
17 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
18 * SOFTWARE.
19 ******************************************************************/
20
21 #ifndef _MIBGROUP_EVENT_H
22 #define _MIBGROUP_EVENT_H
23
24 /*
25 * function prototypes
26 */
27 void init_event(void);
28
29 config_require(util_funcs);
30
31 config_require(Rmon/agutil);
32 config_require(Rmon/rows);
33
34 int
35 event_api_send_alarm(u_char is_rising, u_long alarm_index,
36 u_long event_index, oid * alarmed_var,
37 size_t alarmed_var_length, u_long sample_type,
38 u_long value, u_long the_threshold,
39 const char *alarm_descr);
40
41 #endif /* _MIBGROUP_EVENT_H */