2015-12-04 15:47:52 +01:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2015-12-04 15:47:52 +01:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#ifndef _RP_CPU_H
|
|
|
|
#define _RP_CPU_H
|
2016-09-05 21:47:26 +02:00
|
|
|
|
2016-09-06 15:28:56 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
2016-09-24 11:08:35 +02:00
|
|
|
#define RULE_RC_SYNTAX_ERROR -1
|
|
|
|
#define RULE_RC_REJECT_ERROR -2
|
2016-09-06 15:28:56 +02:00
|
|
|
|
|
|
|
int _old_apply_rule (char *rule, int rule_len, char in[BLOCK_SIZE], int in_len, char out[BLOCK_SIZE]);
|
2016-09-06 18:44:05 +02:00
|
|
|
|
2016-09-08 16:32:24 +02:00
|
|
|
int run_rule_engine (const int rule_len, const char *rule_buf);
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#endif // _RP_CPU_H
|