00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __AWHANDLER_RRD__
00023 #define __AWHANDLER_RRD__
00024
00025 #include <stdio.h>
00026
00027 #include "rrd.h"
00028
00029 #include "monitor.h"
00030
00031 #include "wire.h"
00032
00076
00077
00078
00079
00080
00084 typedef struct {
00085
00086 aw_handler_t
00087 handler_header;
00088
00089 byte_t
00090 *rrdfilename;
00091
00092 byte_t
00093 *desc;
00094
00095 } aw_rrdhandler_t;
00096
00108 aw_rrdhandler_t *aw_create_rrdhandler(const byte_t *rrdfilename,
00109 const byte_t *desc,
00110 const byte_t *create,
00111 int32_t (*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00112 int32_t (*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00113 const aw_alarm_sched_t *sched,
00114 aw_logger_t *aware_logger);
00115
00116
00121 void aw_free_rrdhandler(aw_rrdhandler_t *h);
00122
00123
00127 aw_handler_t *aw_wire_rrdhandler(aw_wire_mkhandler_args_t *args);
00128
00129
00130 #endif