]> code.citadel.org Git - citadel.git/blobdiff - citadel/event_client.h
libev/c-ares migration: unstack out ouf c-ares before querying new requests
[citadel.git] / citadel / event_client.h
index 7fe12d1a4c9d40971c6e8e5e75e82d9b4dff4d44..79eda639b7726060b997d3ec43eaf23c661711c8 100644 (file)
@@ -38,7 +38,8 @@ struct AsyncIO {
                eNextState NextState;
 
        ev_timer conn_fail, 
-               rw_timeout;
+               rw_timeout,
+               unwind_stack_timeout;
        ev_io recv_event, 
                send_event, 
                conn_event;
@@ -87,13 +88,18 @@ void FreeAsyncIOContents(AsyncIO *IO);
 int QueueEventContext(AsyncIO *IO, IO_CallBack CB);
 int ShutDownEventQueue(void);
 
-void InitEventIO(AsyncIO *IO, 
-                void *pData, 
-                double conn_timeout, double first_rw_timeout,
-                int ReadFirst);
+eNextState InitEventIO(AsyncIO *IO, 
+                      void *pData, 
+                      double conn_timeout, 
+                      double first_rw_timeout,
+                      int ReadFirst);
+void IO_postdns_callback(struct ev_loop *loop, ev_timer *watcher, int revents);
 
 int QueueQuery(ns_type Type, char *name, AsyncIO *IO, IO_CallBack PostDNS);
+void QueryCbDone(AsyncIO *IO);
 
 void StopClient(AsyncIO *IO);
 
 void SetNextTimeout(AsyncIO *IO, double timeout);
+
+void InitC_ares_dns(AsyncIO *IO);