add shutdown handlers for libcurl wrapper
[citadel.git] / citadel / modules / extnotify / funambol65.c
index 2f6ef6e5cb8fb26e2fc55087777dd68e16e8bde5..2d65f20ef66019ba193c8d5d23a4610c4eec96b7 100644 (file)
@@ -49,6 +49,7 @@
 
 eNextState EvaluateResult(AsyncIO *IO);
 eNextState ExtNotifyTerminate(AsyncIO *IO);
+eNextState ExtNotifyShutdownAbort(AsyncIO *IO);
 
 /*
 * \brief Sends a message to the Funambol server notifying 
@@ -156,7 +157,8 @@ int notify_http_server(char *remoteurl,
                          NULL,
                          "Citadel ExtNotify",
                          EvaluateResult, 
-                         ExtNotifyTerminate))
+                         ExtNotifyTerminate,
+                         ExtNotifyShutdownAbort))
        {
                syslog(LOG_ALERT, "Unable to initialize libcurl.\n");
                goto abort;
@@ -265,3 +267,8 @@ eNextState ExtNotifyTerminate(AsyncIO *IO)
        free(IO);
        return eAbort;
 }
+eNextState ExtNotifyShutdownAbort(AsyncIO *IO)
+{
+       free(IO);
+       return eAbort;
+}