forked from SpiderLabs/modsecurity-mlogc-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipeline.h
More file actions
30 lines (21 loc) · 691 Bytes
/
pipeline.h
File metadata and controls
30 lines (21 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "yajl/yajl_tree.h"
#include "mlogc-ng.h"
#ifndef __PIPELINE_H__
#define __PIPELINE_H__
struct pipeline_element_t {
char *name;
void *payload;
void *init;
int (*process)(struct pipeline_element_t *, struct audit_log_entry_t *);
struct pipeline_element_t *next;
struct pipeline_element_t *prev;
};
struct pipeline_t {
struct configuration_t *config;
struct pipeline_element_t *elements;
};
struct pipeline_element_t *create_pipe_element(const char *, const yajl_val *,
struct pipeline_t *);
int add_pipe_element(struct pipeline_t *, struct pipeline_element_t *);
int pipeline_process(struct pipeline_t *, struct audit_log_entry_t *);
#endif