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

sfilterhandler.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <values.h>
#include "sfilterhandler.h"

Functions

aw_sfilterhandler_t * aw_create_sfilterhandler (u_int32_t nfilters, aw_sfilter_regex_filter_t *filters, u_int32_t alternate, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *logger)
 Create a string filter handler.

void aw_free_sfilterhandler (aw_sfilterhandler_t *sfilter)
 Free handler and all associated resources.

aw_handler_t * aw_wire_sfilterhandler (aw_wire_mkhandler_args_t *args)
 Create a sfilterhandler using "wire". See header doc for keyword documentation.


Function Documentation

aw_sfilterhandler_t* aw_create_sfilterhandler (  u_int32_t  nfilters,
aw_sfilter_regex_filter_t *  filters,
u_int32_t  alternate,
int32_t(*  regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
int32_t(*  regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
const aw_alarm_sched_t *  sched,
aw_logger_t *  logger
) 
 

Create a string filter handler.

aw_create_sfilterhandler

Parameters:
nfilters How many filters
filters Event filters, if range match is true, generate event
alternate If 1 indicates you want to filter on name, if 2 on source rather than value
regevent Function pointer for event registration
regmaskevent Function pointer for event mask registration
sched Run schedule
logger Logger object
Returns:
Handler object

void aw_free_sfilterhandler (  aw_sfilterhandler_t *  h  ) 
 

Free handler and all associated resources.

aw_free_sfilterhandler

Parameters:
h The handler

aw_handler_t* aw_wire_sfilterhandler (  aw_wire_mkhandler_args_t *  args  ) 
 

Create a sfilterhandler using "wire". See header doc for keyword documentation.

aw_wire_sfilterhandler

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)