summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.h b/main.h
index adefa576f..f111ba1b4 100644
--- a/main.h
+++ b/main.h
@@ -56,6 +56,16 @@ enum script_type {
SCRIPT_MESSAGE,
};
+/* Logic expression */
+struct expression {
+ enum { EXPR_OPERAND, EXPR_OPERATION } type;
+ union {
+ void *operand;
+ char operation;
+ } content;
+ struct expression *next;
+};
+
/* Worker process structure */
struct rspamd_worker {
pid_t pid;
@@ -153,6 +163,7 @@ struct c_module {
};
void start_worker (struct rspamd_worker *worker, int listen_sock);
+struct expression* parse_expression (memory_pool_t *pool, char *line);
#endif