* create struct, so we can transport hostlists in and errormessages out
[citadel.git] / citadel / modules / extnotify / extnotify.h
index 0639acbd5bd9031c6f848f488ecf2c4247dc0b65..870619601792efaf0bebc169e6332d8cf08c7375 100644 (file)
@@ -16,12 +16,20 @@ extern "C" {
 
 #define FUNAMBOL_WS "/funambol/services/admin"
 
+typedef struct _NotifyContext {
+       StrBuf **NotifyHostList;
+       HashList *NotifyErrors;
+} NotifyContext;
+
 int notify_http_server(char *remoteurl, 
                       const char* template, 
                       long tlen, 
                       char *user,
                       char *msgid, 
-                      long MsgNum);
+                      long MsgNum, 
+                      NotifyContext *Ctx);
+
+void ExtNotify_PutErrorMessage(NotifyContext *Ctx, StrBuf *ErrMsg);
 
 void extNotify_getPrefs(long configMsgNum, char *configMsg);
 long extNotify_getConfigMessage(char *username);