]> code.citadel.org Git - citadel.git/blobdiff - citadel/event_client.h
finalize allocation & freeing of rss stuff
[citadel.git] / citadel / event_client.h
index a3d467db072ca2b3aff780ba54e48c81b40633e8..5939ad914ce96db005e862437ab3f83220d02ec7 100644 (file)
@@ -1,3 +1,4 @@
+#define EV_COMPAT3 0
 #include <ev.h>
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -92,6 +93,10 @@ struct AsyncIO {
        
        evcurl_request_data HttpReq;
 
+       /* Saving / loading a message async from / to disk */
+
+       struct CtdlMessage *AsyncMsg;
+       struct recptypes *AsyncRcp;
        /* Custom data; its expected to contain  AsyncIO so we can save malloc()s... */
        void *Data;        /* application specific data */
        void *CitContext;  /* Citadel Session context... */
@@ -104,6 +109,8 @@ typedef struct _IOAddHandler {
 
 void FreeAsyncIOContents(AsyncIO *IO);
 
+void NextDBOperation(AsyncIO *IO, IO_CallBack CB);
+int QueueDBOperation(AsyncIO *IO, IO_CallBack CB);
 int QueueEventContext(AsyncIO *IO, IO_CallBack CB);
 int ShutDownEventQueue(void);
 
@@ -140,6 +147,7 @@ void InitC_ares_dns(AsyncIO *IO);
 int evcurl_init(AsyncIO *IO, 
                void *CustomData, 
                const char* Desc,
-               IO_CallBack CallBack);
+               IO_CallBack CallBack, 
+               IO_CallBack Terminate);
 
 void evcurl_handle_start(AsyncIO *IO);