gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3585 - GNUnet/src/applications/fs/fsui


From: grothoff
Subject: [GNUnet-SVN] r3585 - GNUnet/src/applications/fs/fsui
Date: Tue, 31 Oct 2006 19:38:19 -0800 (PST)

Author: grothoff
Date: 2006-10-31 19:38:17 -0800 (Tue, 31 Oct 2006)
New Revision: 3585

Modified:
   GNUnet/src/applications/fs/fsui/serializetest.c
Log:
fixing testcase

Modified: GNUnet/src/applications/fs/fsui/serializetest.c
===================================================================
--- GNUnet/src/applications/fs/fsui/serializetest.c     2006-11-01 03:32:33 UTC 
(rev 3584)
+++ GNUnet/src/applications/fs/fsui/serializetest.c     2006-11-01 03:38:17 UTC 
(rev 3585)
@@ -60,7 +60,10 @@
 static volatile enum FSUI_EventType waitForEvent;
 static struct FSUI_Context * ctx;
 static struct ECRS_URI * upURI;
+static struct FSUI_UnindexList * unindex;
+static struct FSUI_UploadList * upload;
 
+
 static void * eventCallback(void * cls,
                            const FSUI_Event * event) {
   switch(event->type) {
@@ -104,15 +107,32 @@
 #endif
     break;
   case FSUI_unindex_resumed:
+#if DEBUG_VERBOSE
+    fprintf(stderr,
+           "Received RESUMING: %d\n",
+           event->type);
+#endif
+    unindex = event->data.UnindexResumed.uc.pos;
+    break;
   case FSUI_upload_resumed:
 #if DEBUG_VERBOSE
     fprintf(stderr,
            "Received RESUMING: %d\n",
            event->type);
 #endif
+    upload = event->data.UploadResumed.uc.pos;
     break;
+    break;
   case FSUI_unindex_suspended:
+    unindex = NULL;
+#if DEBUG_VERBOSE
+    fprintf(stderr,
+           "Received SUSPENDING: %d\n",
+           event->type);
+#endif
+    break;
   case FSUI_upload_suspended:
+    upload = NULL;
 #if DEBUG_VERBOSE
     fprintf(stderr,
            "Received SUSPENDING: %d\n",
@@ -156,8 +176,6 @@
   struct ECRS_MetaData * meta;
   struct ECRS_URI * kuri = NULL;
   struct GC_Configuration * cfg;
-  struct FSUI_UnindexList * unindex = NULL;
-  struct FSUI_UploadList * upload = NULL;
 
   ok = YES;
   cfg = GC_create_C_impl();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]