Rewrite loading of notify configurations
[citadel.git] / citadel / modules / extnotify / extnotify.h
index 93a20dbcb3d687c6ead7a2d4b8d50f4af0b251df..f28c59460cf30b2eb8b23e05d0c600b9d9ea42bf 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 {
@@ -43,9 +51,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);