aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/events.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-20 14:34:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-20 19:43:32 +0100
commitb849942bc86cf57d4ae4e57a676ed0f6a057cad2 (patch)
tree41b187bb0f23590d39574a93e1ca2930f8d570ea /src/libserver/events.h
parent5bdc64980877fdc234eba3419a3a596eddc0dc7f (diff)
downloadrspamd-b849942bc86cf57d4ae4e57a676ed0f6a057cad2.tar.gz
rspamd-b849942bc86cf57d4ae4e57a676ed0f6a057cad2.zip
[Project] Kill async watchers as they are way too complex
Diffstat (limited to 'src/libserver/events.h')
-rw-r--r--src/libserver/events.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/libserver/events.h b/src/libserver/events.h
index 68895d38d..85d4e48e2 100644
--- a/src/libserver/events.h
+++ b/src/libserver/events.h
@@ -21,10 +21,8 @@
struct rspamd_async_event;
struct rspamd_async_session;
-struct rspamd_async_watcher;
typedef void (*event_finalizer_t)(gpointer ud);
-typedef void (*event_watcher_t)(gpointer session_data, gpointer ud);
typedef gboolean (*session_finalizer_t)(gpointer user_data);
/**
@@ -49,7 +47,6 @@ struct rspamd_async_session * rspamd_session_create (rspamd_mempool_t *pool,
*/
struct rspamd_async_event *
rspamd_session_add_event (struct rspamd_async_session *session,
- struct rspamd_async_watcher *w,
event_finalizer_t fin,
gpointer user_data,
GQuark subsystem);
@@ -96,64 +93,6 @@ gboolean rspamd_session_pending (struct rspamd_async_session *session);
*/
guint rspamd_session_events_pending (struct rspamd_async_session *session);
-/**
- * Start watching for events in the session, so the specified watcher will be added
- * to all subsequent events until `rspamd_session_watch_stop` is called
- * @param s session object
- * @param cb watcher callback that is called when all events watched are destroyed
- * @param ud opaque data for the callback
- */
-void rspamd_session_watch_start (struct rspamd_async_session *s,
- gint id,
- event_watcher_t cb,
- gpointer ud);
-
-/**
- * Stop watching mode, if no events are watched since the last `rspamd_session_watch_start`,
- * then the watcher is silently ignored
- * @param s session
- * @return number of events watched
- */
-guint rspamd_session_watch_stop (struct rspamd_async_session *s);
-
-/**
- * Create a fake event just for event watcher
- * @param s
- */
-void rspamd_session_watcher_push (struct rspamd_async_session *s);
-
-/**
- * Push callback to the watcher specified
- */
-void rspamd_session_watcher_push_callback (struct rspamd_async_session *s,
- struct rspamd_async_watcher *w,
- event_watcher_t cb,
- gpointer ud);
-
-/**
- * Increase refcount for a specific watcher
- */
-void rspamd_session_watcher_push_specific (struct rspamd_async_session *s,
- struct rspamd_async_watcher *w);
-
-/**
- * Remove a fake event from a watcher
- * @param s
- */
-void rspamd_session_watcher_pop (struct rspamd_async_session *s,
- struct rspamd_async_watcher *w);
-
-/**
- * Returns the current watcher for events session
- * @param s
- * @return
- */
-struct rspamd_async_watcher* rspamd_session_get_watcher (
- struct rspamd_async_session *s);
-
-struct rspamd_async_watcher* rspamd_session_replace_watcher (
- struct rspamd_async_session *s,
- struct rspamd_async_watcher *w);
/**
* Returns TRUE if an async session is currently destroying