gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r18297 - in gnunet/src: fs include


From: gnunet
Subject: [GNUnet-SVN] r18297 - in gnunet/src: fs include
Date: Thu, 24 Nov 2011 13:15:04 +0100

Author: grothoff
Date: 2011-11-24 13:15:04 +0100 (Thu, 24 Nov 2011)
New Revision: 18297

Modified:
   gnunet/src/fs/fs_download.c
   gnunet/src/include/gnunet_fs_service.h
Log:
changing API in anticipation of future implementation of 1369

Modified: gnunet/src/fs/fs_download.c
===================================================================
--- gnunet/src/fs/fs_download.c 2011-11-24 11:58:55 UTC (rev 18296)
+++ gnunet/src/fs/fs_download.c 2011-11-24 12:15:04 UTC (rev 18297)
@@ -515,6 +515,7 @@
     pi.value.download.specifics.progress.offset = 0;
     pi.value.download.specifics.progress.data_len = dlen;
     pi.value.download.specifics.progress.depth = 0;
+    pi.value.download.specifics.progress.trust_offered = 0;
     GNUNET_FS_download_make_status_ (&pi, dc);
     if ((NULL != dc->filename) &&
         (0 !=
@@ -1070,6 +1071,7 @@
   pi.value.download.specifics.progress.offset = dr->offset;
   pi.value.download.specifics.progress.data_len = prc->size;
   pi.value.download.specifics.progress.depth = dr->depth;
+  pi.value.download.specifics.progress.trust_offered = 0;
   GNUNET_FS_download_make_status_ (&pi, dc);
   GNUNET_assert (dc->completed <= dc->length);
   if (dr->depth == 0)
@@ -1673,6 +1675,7 @@
       pi.value.download.specifics.progress.offset = offset;
       pi.value.download.specifics.progress.data_len = 0;
       pi.value.download.specifics.progress.depth = 0;
+      pi.value.download.specifics.progress.trust_offered = 0;
       GNUNET_FS_download_make_status_ (&pi, dc);
     }
     else

Modified: gnunet/src/include/gnunet_fs_service.h
===================================================================
--- gnunet/src/include/gnunet_fs_service.h      2011-11-24 11:58:55 UTC (rev 
18296)
+++ gnunet/src/include/gnunet_fs_service.h      2011-11-24 12:15:04 UTC (rev 
18297)
@@ -1036,6 +1036,11 @@
           */
           unsigned int depth;
 
+         /**
+          * How much trust did we offer for downloading this block?
+          */
+         unsigned int trust_offered;
+
         } progress;
 
         /**




reply via email to

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