]> source.dussan.org Git - rspamd.git/commitdiff
Fix some problematic includes.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 28 Sep 2014 20:44:56 +0000 (21:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 28 Sep 2014 20:46:49 +0000 (21:46 +0100)
16 files changed:
src/controller.c
src/libmime/smtp_proto.h
src/libmime/smtp_utils.h
src/lua/lua_common.h
src/main.c
src/main.h
src/plugins/chartable.c
src/plugins/dkim_check.c
src/plugins/fuzzy_check.c
src/plugins/regexp.c
src/plugins/spf.c
src/plugins/surbl.c
src/plugins/surbl.h
src/smtp.h
src/smtp_proxy.c
src/worker.c

index eb9bb5d1e311a3e46e681a9837a1110e36f58a99..1a82e6839bd1f55aa8e2ace37a30ec341604a6dc 100644 (file)
 
 
 #include "config.h"
-#include "util.h"
-#include "main.h"
-#include "http.h"
-#include "message.h"
-#include "protocol.h"
-#include "upstream.h"
-#include "cfg_file.h"
-#include "map.h"
-#include "dns.h"
 #include "tokenizers/tokenizers.h"
 #include "classifiers/classifiers.h"
-#include "dynamic_cfg.h"
-#include "rrd.h"
+#include "libserver/dynamic_cfg.h"
+#include "libutil/rrd.h"
+#include "libutil/map.h"
+#include "main.h"
 
 #ifdef WITH_GPERF_TOOLS
 #   include <glib/gprintf.h>
index 7c5787926b3802eeb085b152faedebf075dc6a6e..a5c86588971a5dd20a0fa11aa2e3bec4e29e89a3 100644 (file)
@@ -2,7 +2,6 @@
 #define RSPAMD_SMTP_PROTO_H
 
 #include "config.h"
-#include "smtp.h"
 
 /* SMTP errors */
 #define SMTP_ERROR_BAD_COMMAND "500 Syntax error, command unrecognized" CRLF
index c097291803eddb1f200ec9d6f1e7f81c4c24a2f8..bb17d142e4edd1962911fb58ee7691403688d39e 100644 (file)
@@ -2,8 +2,6 @@
 #define SMTP_UTILS_H_
 
 #include "config.h"
-#include "main.h"
-#include "smtp.h"
 
 /**
  * @file smtp_utils.h
index f67d271d6ead768ac03fac2d984517c7818d33f3..afcfcdcdb7b580bd28eb75e92ad909c7237a9b9d 100644 (file)
@@ -4,14 +4,14 @@
 #include "config.h"
 #ifdef WITH_LUA
 
-#include "main.h"
-#include "cfg_file.h"
-#include "ucl.h"
-#include "lua_ucl.h"
 #include <lua.h>
 #include <lauxlib.h>
 #include <lualib.h>
 
+#include "main.h"
+#include "ucl.h"
+#include "lua_ucl.h"
+
 #ifndef lua_open
 #define lua_open()  luaL_newstate ()
 #endif
index b4537eeeb6da130ce38094b392c485420f53be3d..84b6118224ff56a5991eedff452ef496b571567a 100644 (file)
 
 #include "config.h"
 #include "main.h"
-#include "cfg_file.h"
-#include "util.h"
 #include "lmtp.h"
 #include "smtp.h"
-#include "map.h"
+#include "libutil/map.h"
 #include "fuzzy_storage.h"
 #include "kvstorage_server.h"
-#include "symbols_cache.h"
+#include "libserver/symbols_cache.h"
 #include "lua/lua_common.h"
 #include "ottery.h"
 #include "xxhash.h"
index 537cf575c85cf90f31227fdb63b7db343435d75a..57f4ee3a494e0957b22e2d00de32a815be091acd 100644 (file)
@@ -7,20 +7,22 @@
 #define RSPAMD_MAIN_H
 
 #include "config.h"
-#include "fstring.h"
-#include "mem_pool.h"
-#include "statfile.h"
-#include "url.h"
-#include "protocol.h"
-#include "filter.h"
-#include "buffer.h"
-#include "events.h"
-#include "util.h"
-#include "logger.h"
-#include "roll_history.h"
-#include "http.h"
-#include "task.h"
-#include "worker_util.h"
+#include "libutil/fstring.h"
+#include "libutil/mem_pool.h"
+#include "libutil/util.h"
+#include "libutil/logger.h"
+#include "libutil/http.h"
+#include "libutil/upstream.h"
+#include "libserver/statfile.h"
+#include "libserver/url.h"
+#include "libserver/protocol.h"
+#include "libserver/buffer.h"
+#include "libserver/events.h"
+#include "libserver/roll_history.h"
+#include "libserver/task.h"
+#include "libserver/worker_util.h"
+#include "libmime/filter.h"
+
 
 /* Default values */
 #define FIXED_CONFIG_FILE RSPAMD_CONFDIR "/rspamd.conf"
index bb0113a8b8dec318c464775d9b61a90b6c944103..90a76e50a586ced013b7c259ba05cd4cff0abd0c 100644 (file)
  */
 
 #include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
 #include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
 
 #define DEFAULT_SYMBOL "R_CHARSET_MIXED"
 #define DEFAULT_THRESHOLD 0.1
index 2a5ac220327465f2c0ac41c62e69aaf052fc3cc4..075d23c889caa5216627aa3301aafbd35df75953 100644 (file)
  */
 
 #include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libserver/dkim.h"
+#include "libutil/hash.h"
+#include "libutil/map.h"
 #include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "dkim.h"
-#include "hash.h"
 
 #define DEFAULT_SYMBOL_REJECT "R_DKIM_REJECT"
 #define DEFAULT_SYMBOL_TEMPFAIL "R_DKIM_TEMPFAIL"
index 0eddab3b396e571dce6f518405a427ec861f714b..3bac2f7b2602deef98b64c5e4138a19715e90bef 100644 (file)
  */
 
 #include "config.h"
-#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "images.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libutil/map.h"
+#include "libmime/images.h"
 #include "fuzzy_storage.h"
 #include "utlist.h"
+#include "main.h"
 
 #define DEFAULT_SYMBOL "R_FUZZY_HASH"
 #define DEFAULT_UPSTREAM_ERROR_TIME 10
index 76a8b8af59bcbd7235bf665a841f0014f04af48e..6b5cda269900319331722b2fe97eec3eca246d0a 100644 (file)
 
 
 #include "config.h"
-#include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "map.h"
-#include "util.h"
-#include "expressions.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libutil/map.h"
 #include "lua/lua_common.h"
+#include "main.h"
 
 #define DEFAULT_STATFILE_PREFIX "./"
 
index 11303b33afaea4ad24ef0b185b541d5e197f3dd3..34eb69a25345557bc7e80ecb1420f1753851310f 100644 (file)
  */
 
 #include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libserver/spf.h"
+#include "libutil/hash.h"
+#include "libutil/map.h"
 #include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "spf.h"
-#include "hash.h"
 
 #define DEFAULT_SYMBOL_FAIL "R_SPF_FAIL"
 #define DEFAULT_SYMBOL_SOFTFAIL "R_SPF_SOFTFAIL"
index ee54cace85343810fe6b7443f09e4b7d5a9d5293..9f961ab49e79dd60f7a32503da84829f9eb5808c 100644 (file)
  */
 
 #include "config.h"
+#include "libmime/message.h"
+#include "libmime/expressions.h"
+#include "libutil/hash.h"
+#include "libutil/map.h"
 #include "main.h"
-#include "message.h"
-#include "cfg_file.h"
-#include "expressions.h"
-#include "util.h"
-#include "map.h"
-#include "dns.h"
-#include "hash.h"
-#include "utlist.h"
-
 #include "surbl.h"
 
+#include "utlist.h"
+
 static struct surbl_ctx *surbl_module_ctx = NULL;
 
 static void surbl_test_url (struct rspamd_task *task, void *user_data);
index 1c97c2a4d270bdfff1037fbad47d7a85983b651a..bde284cf289017c439745cb00479c2efde22eb88 100644 (file)
@@ -2,9 +2,8 @@
 #define RSPAMD_MODULE_SURBL
 
 #include "config.h"
+#include "libutil/trie.h"
 #include "main.h"
-#include "cfg_file.h"
-#include "trie.h"
 
 #define DEFAULT_REDIRECTOR_PORT 8080
 #define DEFAULT_SURBL_WEIGHT 10
index 4f549dda1088c668058ee77306211b3f2fcebcf3..aa1651b1244fb5e5aeaf15ecac9e47dd6d7d7e65 100644 (file)
@@ -2,9 +2,10 @@
 #define RSPAMD_SMTP_H
 
 #include "config.h"
+#include "libutil/upstream.h"
+#include "libmime/smtp_utils.h"
+#include "libmime/smtp_proto.h"
 #include "main.h"
-#include "upstream.h"
-#include "smtp_utils.h"
 
 struct rspamd_dns_resolver;
 
index e992a4b37555041d7f5277e64d97b62e218ab067..43dfc567b541da1a40a58231b5501d5aa13a584a 100644 (file)
  */
 
 #include "config.h"
-#include "main.h"
-#include "cfg_file.h"
-#include "util.h"
-#include "smtp_proto.h"
-#include "map.h"
-#include "message.h"
-#include "dns.h"
-#include "upstream.h"
-#include "proxy.h"
 #include "utlist.h"
+#include "libserver/proxy.h"
+#include "main.h"
+#include "smtp.h"
 
 /*
  * SMTP proxy is a simple smtp proxy worker for dns resolving and
index abf02938fa294b5eec61a93116efbae934e4bc6d..c562528a3dc6f7d0148295e5da8a2f124e072c93 100644 (file)
  */
 
 #include "config.h"
-#include "util.h"
+#include "libutil/util.h"
+#include "libutil/map.h"
+#include "libutil/upstream.h"
+#include "libserver/protocol.h"
+#include "libserver/cfg_file.h"
+#include "libserver/url.h"
+#include "libserver/dns.h"
+#include "libmime/message.h"
 #include "main.h"
-#include "protocol.h"
-#include "upstream.h"
-#include "cfg_file.h"
-#include "url.h"
-#include "message.h"
-#include "map.h"
-#include "dns.h"
 
 #include "lua/lua_common.h"