commit 134526b: [Project] Rename events.h

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jun 22 12:14:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-15 16:20:23 +0100
URL: https://github.com/rspamd/rspamd/commit/134526b56294feb777ab76997037cccad2ee78a6

[Project] Rename events.h

---
 src/libserver/CMakeLists.txt                | 2 +-
 src/libserver/{events.c => async_session.c} | 2 +-
 src/libserver/{events.h => async_session.h} | 6 +++---
 src/libserver/dns.h                         | 2 +-
 src/libserver/task.h                        | 2 +-
 src/rspamd.h                                | 2 +-
 test/rspamd_dns_test.c                      | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/libserver/CMakeLists.txt b/src/libserver/CMakeLists.txt
index ccedbcdb3..f0dcae867 100644
--- a/src/libserver/CMakeLists.txt
+++ b/src/libserver/CMakeLists.txt
@@ -6,7 +6,7 @@ SET(LIBRSPAMDSERVERSRC
 				${CMAKE_CURRENT_SOURCE_DIR}/dkim.c
 				${CMAKE_CURRENT_SOURCE_DIR}/dns.c
 				${CMAKE_CURRENT_SOURCE_DIR}/dynamic_cfg.c
-				${CMAKE_CURRENT_SOURCE_DIR}/events.c
+				${CMAKE_CURRENT_SOURCE_DIR}/async_session.c
 				${CMAKE_CURRENT_SOURCE_DIR}/fuzzy_backend.c
 				${CMAKE_CURRENT_SOURCE_DIR}/fuzzy_backend_sqlite.c
 				${CMAKE_CURRENT_SOURCE_DIR}/html.c
diff --git a/src/libserver/events.c b/src/libserver/async_session.c
similarity index 99%
rename from src/libserver/events.c
rename to src/libserver/async_session.c
index 3f6d47112..cec2963aa 100644
--- a/src/libserver/events.c
+++ b/src/libserver/async_session.c
@@ -17,7 +17,7 @@
 #include "rspamd.h"
 #include "contrib/uthash/utlist.h"
 #include "contrib/libucl/khash.h"
-#include "events.h"
+#include "async_session.h"
 #include "cryptobox.h"
 
 #define RSPAMD_SESSION_FLAG_DESTROYING (1 << 1)
diff --git a/src/libserver/events.h b/src/libserver/async_session.h
similarity index 97%
rename from src/libserver/events.h
rename to src/libserver/async_session.h
index 7e0de8749..92454158a 100644
--- a/src/libserver/events.h
+++ b/src/libserver/async_session.h
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#ifndef RSPAMD_EVENTS_H
-#define RSPAMD_EVENTS_H
+#ifndef RSPAMD_ASYNC_SESSION_H
+#define RSPAMD_ASYNC_SESSION_H
 
 #include "config.h"
 #include "mem_pool.h"
@@ -107,4 +107,4 @@ guint rspamd_session_events_pending (struct rspamd_async_session *session);
  */
 gboolean rspamd_session_blocked (struct rspamd_async_session *s);
 
-#endif /* RSPAMD_EVENTS_H */
+#endif /*RSPAMD_ASYNC_SESSION_H*/
diff --git a/src/libserver/dns.h b/src/libserver/dns.h
index e1def703d..158ac504e 100644
--- a/src/libserver/dns.h
+++ b/src/libserver/dns.h
@@ -19,7 +19,7 @@
 
 #include "config.h"
 #include "mem_pool.h"
-#include "events.h"
+#include "async_session.h"
 #include "logger.h"
 #include "rdns.h"
 #include "upstream.h"
diff --git a/src/libserver/task.h b/src/libserver/task.h
index 263f06719..6aa1422bc 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -18,7 +18,7 @@
 
 #include "config.h"
 #include "http_connection.h"
-#include "events.h"
+#include "async_session.h"
 #include "util.h"
 #include "mem_pool.h"
 #include "dns.h"
diff --git a/src/rspamd.h b/src/rspamd.h
index 10d3be9fb..09f401b38 100644
--- a/src/rspamd.h
+++ b/src/rspamd.h
@@ -27,7 +27,7 @@
 #include "libutil/radix.h"
 #include "libserver/url.h"
 #include "libserver/protocol.h"
-#include "libserver/events.h"
+#include "libserver/async_session.h"
 #include "libserver/roll_history.h"
 #include "libserver/task.h"
 #include <openssl/ssl.h>
diff --git a/test/rspamd_dns_test.c b/test/rspamd_dns_test.c
index 678f34e4d..34c35830c 100644
--- a/test/rspamd_dns_test.c
+++ b/test/rspamd_dns_test.c
@@ -4,7 +4,7 @@
 #include "dns.h"
 #include "logger.h"
 #include "rspamd.h"
-#include "events.h"
+#include "async_session.h"
 #include "cfg_file.h"
 
 static guint requests = 0;


More information about the Commits mailing list