summaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-16 09:57:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit71e0dbf9608026c347279886097790e51e9e5506 (patch)
tree1243e079b7c6fcb6a12707a67536ef1d62a638dc /src/libutil/addr.h
parentbb3a48e42835fdbb456fdf0d0f74050fa61ff7d5 (diff)
downloadrspamd-71e0dbf9608026c347279886097790e51e9e5506.tar.gz
rspamd-71e0dbf9608026c347279886097790e51e9e5506.zip
[Project] Remove libfann, gd and other unsupported stuff
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r--src/libutil/addr.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index bfe586ad1..7efa5e318 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -221,15 +221,17 @@ int rspamd_inet_address_listen (const rspamd_inet_addr_t *addr, gint type,
*/
gboolean rspamd_ip_is_valid (const rspamd_inet_addr_t *addr);
+typedef void (*rspamd_accept_throttling_handler)(gint, void *);
/**
* Accept from listening socket filling addr structure
* @param sock listening socket
- * @param addr allocated inet addr structure
- * @param accept_events events for accepting new sockets
+ * @param target allocated inet addr structure
* @return
*/
-gint rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t **addr,
- GList *accept_events);
+gint rspamd_accept_from_socket (gint sock,
+ rspamd_inet_addr_t **target,
+ rspamd_accept_throttling_handler hdl,
+ void *hdl_data);
/**
* Parse host[:port[:priority]] line