GArray *args; /**< its args */
};
+enum rspamd_mime_atom_type {
+ MIME_ATOM_REGEXP = 0,
+ MIME_ATOM_INTERNAL_FUNCTION,
+ MIME_ATOM_LUA_FUNCTION
+};
+
struct rspamd_mime_atom {
gchar *str;
union {
struct rspamd_function_atom *func;
const gchar *lua_function;
} d;
- enum {
- MIME_ATOM_REGEXP = 0,
- MIME_ATOM_INTERNAL_FUNCTION,
- MIME_ATOM_LUA_FUNCTION
- } type;
+ enum rspamd_mime_atom_type type;
};
/*
break;
case REGEXP_MESSAGE:
raw = TRUE;
- ct = (guint8 *)task->msg.start;
+ ct = (guint8 *)task->msg.begin;
clen = task->msg.len;
ret = rspamd_mime_regexp_element_process (task, re, ct, clen, raw);
/**
* Function's argument
*/
+enum rspamd_expression_type {
+ EXPRESSION_ARGUMENT_NORMAL = 0,
+ EXPRESSION_ARGUMENT_BOOL,
+ EXPRESSION_ARGUMENT_REGEXP
+};
struct expression_argument {
- enum {
- EXPRESSION_ARGUMENT_NORMAL = 0,
- EXPRESSION_ARGUMENT_BOOL,
- EXPRESSION_ARGUMENT_REGEXP
- } type; /**< type of argument (text or other function) */
+ enum rspamd_expression_type type; /**< type of argument (text or other function) */
void *data; /**< pointer to its data */
};