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

rfilterhandler.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_RFILTER__
00023 #define __AWHANDLER_RFILTER__
00024 
00025 #include <stdio.h>
00026 
00027 #include "monitor.h"
00028 #include "wire.h"
00029 
00141 /* 
00142 Changes:
00143 
00144 */
00145 
00149 typedef struct {
00150 
00151   float64_t                  /* copy event if event's value is [min,max] */
00152    min,
00153    max;
00154 
00155   aw_event_sig_t
00156    copy;                     /* event->id for generated copy events */
00157 
00158 } aw_rfilter_range_filter_t;
00159 
00163 typedef struct {
00164 
00165   aw_handler_t
00166    handler_header;
00167 
00168   u_int32_t
00169    nfilters;
00170 
00171   aw_rfilter_range_filter_t
00172    *filters;
00173 
00174 } aw_rfilterhandler_t;
00175 
00176 
00188 aw_rfilterhandler_t *aw_create_rfilterhandler(u_int32_t nfilters,
00189                                               aw_rfilter_range_filter_t *filters,
00190                                               u_int32_t priority,
00191                                               int32_t (*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00192                                               int32_t (*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00193                                               const aw_alarm_sched_t *sched,
00194                                               aw_logger_t *logger);
00195 
00196 
00201 void aw_free_rfilterhandler(aw_rfilterhandler_t *h);
00202 
00203 
00207 aw_handler_t *aw_wire_rfilterhandler(aw_wire_mkhandler_args_t *args);
00208 
00209 
00210 
00211 #endif
00212 
Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)