Logging: add timestamps for eventdriven IO
[citadel.git] / citadel / event_client.h
index 6ae8b27d3b740aa5d06e7556ccda0a87f4e550ec..2d5ab986161d1a7a85de628b766d2dec5f2fec29 100644 (file)
@@ -100,6 +100,7 @@ typedef struct _evcurl_request_data
 
 /* DNS Related */
 typedef struct __evcares_data {
+       ev_tstamp Start;
        ev_io recv_event,
                send_event;
        ev_timer timeout;           /* timeout while requesting ips */
@@ -115,6 +116,9 @@ typedef struct __evcares_data {
 
 struct AsyncIO {
        long ID;
+       ev_tstamp Now;
+       ev_tstamp StartIO;
+       ev_tstamp StartDB;
        eNextState NextState;
 
        /* connection related */
@@ -253,8 +257,6 @@ void StopClientWatchers(AsyncIO *IO);
 
 void SetNextTimeout(AsyncIO *IO, double timeout);
 
-void InitC_ares_dns(AsyncIO *IO);
-
 #include <curl/curl.h>
 
 #define OPT(s, v) \