]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/extnotify/extnotify.h
Migrate http context struct into the AsyncIO struct; streamline other structs.
[citadel.git] / citadel / modules / extnotify / extnotify.h
index 93a20dbcb3d687c6ead7a2d4b8d50f4af0b251df..63a8fcd8e13c23aadadde58e02cbba50a47e51ac 100644 (file)
  */
 
 #include "../eventclient/serv_curl.h"
-
-#define FUNAMBOL_CONFIG_TEXT "funambol"
 #define PAGER_CONFIG_MESSAGE "__ Push email settings __"
+#define FUNAMBOL_CONFIG_TEXT "funambol"
 #define PAGER_CONFIG_SYSTEM  "textmessage"    
 #define PAGER_CONFIG_HTTP  "httpmessage"    
 
+typedef enum _eNotifyType {
+       eNone, 
+       eFunambol, 
+       eHttpMessages,
+       eTextMessage
+}eNotifyType;
+
+
 #define FUNAMBOL_WS "/funambol/services/admin"
 
 typedef struct _NotifyContext {
        StrBuf **NotifyHostList;
        HashList *NotifyErrors;
-       evcurl_request_data HTTPData;
+       AsyncIO IO;
 } NotifyContext;
 
 int notify_http_server(char *remoteurl, 
@@ -43,9 +50,7 @@ int notify_http_server(char *remoteurl,
 
 void ExtNotify_PutErrorMessage(NotifyContext *Ctx, StrBuf *ErrMsg);
 
-void extNotify_getPrefs(long configMsgNum, char *configMsg);
-long extNotify_getConfigMessage(char *username);
-void process_notify(long msgnum, void *usrdata);
+///void process_notify(long msgnum, void *usrdata);