aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-28 17:46:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-28 17:46:01 +0100
commitaae8be4c65669d6f3a5ac5825d696d5a4ac6dbad (patch)
tree2fcb5518514397d5052e0ecbb6daf8f5ae02f939 /src/libserver/symbols_cache.c
parent6b2213975f895fe6f6f604bd1b1dd0dcf6b69fe2 (diff)
downloadrspamd-aae8be4c65669d6f3a5ac5825d696d5a4ac6dbad.tar.gz
rspamd-aae8be4c65669d6f3a5ac5825d696d5a4ac6dbad.zip
[Minor] Improve style of enum definition
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index f0959a15e..b0f63134a 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -145,18 +145,20 @@ struct delayed_cache_condition {
lua_State *L;
};
+enum rspamd_cache_savepoint_stage {
+ RSPAMD_CACHE_PASS_INIT = 0,
+ RSPAMD_CACHE_PASS_PREFILTERS,
+ RSPAMD_CACHE_PASS_WAIT_PREFILTERS,
+ RSPAMD_CACHE_PASS_FILTERS,
+ RSPAMD_CACHE_PASS_WAIT_FILTERS,
+ RSPAMD_CACHE_PASS_POSTFILTERS,
+ RSPAMD_CACHE_PASS_WAIT_POSTFILTERS,
+ RSPAMD_CACHE_PASS_DONE,
+};
+
struct cache_savepoint {
guchar *processed_bits;
- enum {
- RSPAMD_CACHE_PASS_INIT = 0,
- RSPAMD_CACHE_PASS_PREFILTERS,
- RSPAMD_CACHE_PASS_WAIT_PREFILTERS,
- RSPAMD_CACHE_PASS_FILTERS,
- RSPAMD_CACHE_PASS_WAIT_FILTERS,
- RSPAMD_CACHE_PASS_POSTFILTERS,
- RSPAMD_CACHE_PASS_WAIT_POSTFILTERS,
- RSPAMD_CACHE_PASS_DONE,
- } pass;
+ enum rspamd_cache_savepoint_stage pass;
guint version;
struct rspamd_metric_result *rs;
gdouble lim;