Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

rrdhandler.h

Go to the documentation of this file.
00001 
00002 /*
00003 ** Copyright (C) 2002 Russell Leighton
00004 **
00005 ** This program is free software; you can redistribute it and/or modify
00006 ** it under the terms of the GNU General Public License as published by
00007 ** the Free Software Foundation; either version 2 of the License, or
00008 ** (at your option) any later version.
00009 **
00010 ** This program is distributed in the hope that it will be useful,
00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ** GNU General Public License for more details.
00014 **
00015 ** You should have received a copy of the GNU General Public License
00016 ** along with this program; if not, write to the Free Software
00017 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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 Changes:
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
Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)