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

flt_livefilter.c File Reference

#include "config.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/types.h>
#include "readline.h"
#include "hashlib.h"
#include "utils.h"
#include "configparser.h"
#include "cfcgi.h"
#include "template.h"
#include "clientlib.h"
#include "charconvert.h"

Go to the source code of this file.

Data Structures

struct  s_node

Defines

#define flt_lf_get_type(x)   (symbols[x])
#define PREC_ID   60
#define PREC_EQ   50
#define PREC_AND   40
#define PREC_OR   30
#define PREC_PAREN   20
#define TOK_EOS   0x00
#define TOK_EQ   0x01
#define TOK_NE   0x02
#define TOK_OR   0x03
#define TOK_AND   0x04
#define TOK_ID   0x05
#define TOK_STR   0x06
#define TOK_CONTAINS   0x07
#define TOK_LPAREN   0x08
#define TOK_RPAREN   0x09
#define TOK_CONTAINS_NOT   0x0A

Typedefs

typedef s_node t_flt_lf_node

Functions

u_char * case_strstr (const u_char *haystack, const u_char *needle)
int read_string (register u_char *ptr)
int flt_lf_scanner (u_char *str, u_char **pos)
t_flt_lf_node * flt_lf_insert_node (t_flt_lf_node *cur, t_flt_lf_node *tok, t_flt_lf_node *root)
int flt_lf_parse_string (u_char *str, u_char **pos, t_cf_template *tpl, t_flt_lf_node *node, t_flt_lf_node *root_node, t_configuration *dc)
int flt_lf_form (t_cf_hash *head, t_configuration *dc, t_configuration *vc, t_cf_template *begin, t_cf_template *end)
u_char * flt_lf_evaluate (t_flt_lf_node *n, t_message *msg, u_int64_t tid)
int flt_lf_filter (t_cf_hash *head, t_configuration *dc, t_configuration *vc, t_message *msg, unsigned long long tid, int mode)
int flt_lf_handle_command (t_configfile *cf, t_conf_opt *opt, u_char **args, int argnum)
void flt_lf_cleanup (void)

Variables

t_conf_opt config []
t_handler_config handlers []
t_module_config flt_livefilter


Detailed Description

Author:
Christian Kruse, <cjk@wwwtech.de>
Live category and poster filter

Definition in file flt_livefilter.c.


Variable Documentation

t_conf_opt config[]
 

Initial value:

 {
  { "ActivateLiveFilter", flt_lf_handle_command, NULL },
  { NULL, NULL, NULL }
}

Definition at line 562 of file flt_livefilter.c.

t_module_config flt_livefilter
 

Initial value:

 {
  config,
  handlers,
  NULL,
  NULL,
  NULL,
  flt_lf_cleanup
}

Definition at line 573 of file flt_livefilter.c.

t_handler_config handlers[]
 

Initial value:

 {
  { VIEW_INIT_HANDLER, flt_lf_form },
  { VIEW_LIST_HANDLER, flt_lf_filter },
  { 0, NULL }
}

Definition at line 567 of file flt_livefilter.c.


Generated on Sun Apr 25 16:37:39 2004 for Classic Forum by doxygen 1.3.5