aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/libev_helper.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 10:49:23 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 10:49:23 +0100
commit537a7180a0d5132c11636c4fd8b1450cd99d352c (patch)
treefb9f8c84955a411bdffbd6371ea32f2716fb3687 /src/libutil/libev_helper.h
parent5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365 (diff)
downloadrspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.tar.gz
rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.zip
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
Diffstat (limited to 'src/libutil/libev_helper.h')
-rw-r--r--src/libutil/libev_helper.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libutil/libev_helper.h b/src/libutil/libev_helper.h
index fc344736f..44d1604b0 100644
--- a/src/libutil/libev_helper.h
+++ b/src/libutil/libev_helper.h
@@ -21,7 +21,7 @@
#include "contrib/libev/ev.h"
-#ifdef __cplusplus
+#ifdef __cplusplus
extern "C" {
#endif
@@ -30,7 +30,7 @@ extern "C" {
* It allows to create timed IO watchers utilising both
*/
-typedef void (*rspamd_ev_cb) (int fd, short what, void *ud);
+typedef void (*rspamd_ev_cb)(int fd, short what, void *ud);
struct rspamd_io_ev {
ev_io io;
@@ -48,8 +48,8 @@ struct rspamd_io_ev {
* @param cb
* @param ud
*/
-void rspamd_ev_watcher_init (struct rspamd_io_ev *ev,
- int fd, short what, rspamd_ev_cb cb, void *ud);
+void rspamd_ev_watcher_init(struct rspamd_io_ev *ev,
+ int fd, short what, rspamd_ev_cb cb, void *ud);
/**
* Start watcher with the specific timeout
@@ -57,17 +57,17 @@ void rspamd_ev_watcher_init (struct rspamd_io_ev *ev,
* @param ev
* @param timeout
*/
-void rspamd_ev_watcher_start (struct ev_loop *loop,
- struct rspamd_io_ev *ev,
- ev_tstamp timeout);
+void rspamd_ev_watcher_start(struct ev_loop *loop,
+ struct rspamd_io_ev *ev,
+ ev_tstamp timeout);
/**
* Stops watcher and clean it up
* @param loop
* @param ev
*/
-void rspamd_ev_watcher_stop (struct ev_loop *loop,
- struct rspamd_io_ev *ev);
+void rspamd_ev_watcher_stop(struct ev_loop *loop,
+ struct rspamd_io_ev *ev);
/**
* Convenience function to reschedule watcher with different events
@@ -75,11 +75,11 @@ void rspamd_ev_watcher_stop (struct ev_loop *loop,
* @param ev
* @param what
*/
-void rspamd_ev_watcher_reschedule (struct ev_loop *loop,
- struct rspamd_io_ev *ev,
- short what);
+void rspamd_ev_watcher_reschedule(struct ev_loop *loop,
+ struct rspamd_io_ev *ev,
+ short what);
-#ifdef __cplusplus
+#ifdef __cplusplus
}
#endif