Reverts commit c6aec42f213ec284e34648f3d69bcf927dccddb1 because putting the opening...
[citadel.git] / webcit / dav_report.c
index c823910eb735b334c8b3e0926a5bd103ada59420..9331ffd49d13dd29f93d3608e3f3e559b0f0ddbb 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * Handles GroupDAV REPORT requests.
  *
@@ -59,7 +58,8 @@ Content-length: 255
 /*
  * The pathname is always going to be /groupdav/room_name/msg_num
  */
-void dav_report(void) {
+void dav_report(void) 
+{
        char datestring[256];
        time_t now = time(NULL);
 
@@ -72,29 +72,49 @@ void dav_report(void) {
        dav_common_headers();
        hprintf("Date: %s\r\n", datestring);
        hprintf("Content-Type: text/plain\r\n");
-       wc_printf("An internal error has occurred at %s:%d.\r\n", __FILE__, __LINE__);
+       wc_printf("An internal error has occurred at %s:%d.\r\n", __FILE__ , __LINE__ );
        end_burst();
        return;
 }
 
 
 
-extern int ParseMessageListHeaders_EUID(StrBuf * Line,
-                                       const char **pos, message_summary * Msg, StrBuf * ConversionBuffer, void **ViewSpecific);
+extern int ParseMessageListHeaders_EUID(StrBuf *Line, 
+                                       const char **pos, 
+                                       message_summary *Msg, 
+                                       StrBuf *ConversionBuffer,
+                                       void **ViewSpecific);
 
-extern int DavUIDL_GetParamsGetServerCall(SharedMessageStatus * Stat,
-                                         void **ViewSpecific, long oper, char *cmd, long len, char *filter, long flen);
+extern int DavUIDL_GetParamsGetServerCall(SharedMessageStatus *Stat, 
+                                         void **ViewSpecific, 
+                                         long oper, 
+                                         char *cmd, 
+                                         long len,
+                                         char *filter,
+                                         long flen);
 
-extern int DavUIDL_RenderView_or_Tail(SharedMessageStatus * Stat, void **ViewSpecific, long oper);
+extern int DavUIDL_RenderView_or_Tail(SharedMessageStatus *Stat, 
+                               void **ViewSpecific, 
+                               long oper);
 
 extern int DavUIDL_Cleanup(void **ViewSpecific);
 
 
 
-void InitModule_REPORT(void) {
-       RegisterReadLoopHandlerset(eReadEUIDS,
-                                  DavUIDL_GetParamsGetServerCall,
-                                  NULL,
-                                  NULL, ParseMessageListHeaders_EUID, NULL, DavUIDL_RenderView_or_Tail, DavUIDL_Cleanup, NULL);
+void 
+InitModule_REPORT
+(void)
+{
+       RegisterReadLoopHandlerset(
+               eReadEUIDS,
+               DavUIDL_GetParamsGetServerCall,
+               NULL,
+               NULL,
+               ParseMessageListHeaders_EUID,
+               NULL,
+               DavUIDL_RenderView_or_Tail,
+               DavUIDL_Cleanup,
+               NULL
+       );
 
 }