File: filters.h

package info (click to toggle)
grok 1.20110708.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,388 kB
  • sloc: ansic: 3,469; ruby: 987; makefile: 276; sh: 124; yacc: 106
file content (22 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _FILTERS_
#define _FILTERS_

#include "grok.h"

#ifndef _GPERF_
struct filter {
  const char *name;
  int (*func)(grok_match_t *gm, char **value, int *value_len,
              int *value_size);
};
#endif

struct filter *string_filter_lookup(const char *str, unsigned int len);
int filter_jsonencode(grok_match_t *gm, char **value, int *value_len,
                      int *value_size);
int filter_shellescape(grok_match_t *gm, char **value, int *value_len,
                       int *value_size);
int filter_shelldqescape(grok_match_t *gm, char **value, int *value_len,
                       int *value_size);

#endif /* _FILTERS_ */