diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-11 14:50:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-11 14:50:07 +0000 |
commit | cd67a970afe36e8a2aa99e48cbe103cc4cc26424 (patch) | |
tree | 67e5023676f2278485e35a2b71ce246b9933f406 /src/include/gnunet_fs_service.h | |
parent | 3dd666cbad61490c0de1cb891fd1b36c8536c348 (diff) | |
download | gnunet-cd67a970afe36e8a2aa99e48cbe103cc4cc26424.tar.gz gnunet-cd67a970afe36e8a2aa99e48cbe103cc4cc26424.zip |
generate progress events when publishing directories (towards fixing #2230)
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r-- | src/include/gnunet_fs_service.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index 3546fdcb7..011087a57 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -685,7 +685,13 @@ enum GNUNET_FS_Status | |||
685 | * Notification that the unindexing of this file | 685 | * Notification that the unindexing of this file |
686 | * was stopped (final event for this action). | 686 | * was stopped (final event for this action). |
687 | */ | 687 | */ |
688 | GNUNET_FS_STATUS_UNINDEX_STOPPED = 36 | 688 | GNUNET_FS_STATUS_UNINDEX_STOPPED = 36, |
689 | |||
690 | /** | ||
691 | * Notification that we are making progress sharing a directory. | ||
692 | */ | ||
693 | GNUNET_FS_STATUS_PUBLISH_PROGRESS_DIRECTORY = 37 | ||
694 | |||
689 | }; | 695 | }; |
690 | 696 | ||
691 | 697 | ||
@@ -844,6 +850,33 @@ struct GNUNET_FS_ProgressInfo | |||
844 | 850 | ||
845 | /** | 851 | /** |
846 | * These values are only valid for | 852 | * These values are only valid for |
853 | * #GNUNET_FS_STATUS_PUBLISH_DIRECTORY_PROGRESS events. | ||
854 | */ | ||
855 | struct | ||
856 | { | ||
857 | |||
858 | /** | ||
859 | * How far are we along in the overall directory? | ||
860 | */ | ||
861 | uint64_t completed; | ||
862 | |||
863 | /** | ||
864 | * How big do we estimate the entire directory to be? | ||
865 | */ | ||
866 | uint64_t total; | ||
867 | |||
868 | /** | ||
869 | * At what time do we expect to finish the upload of the | ||
870 | * CONTENTS of the directory. (The direcory itself will take | ||
871 | * extra time, indicated with the "eta" member at the | ||
872 | * "publish"-level of this struct.) | ||
873 | */ | ||
874 | struct GNUNET_TIME_Relative eta; | ||
875 | |||
876 | } progress_directory; | ||
877 | |||
878 | /** | ||
879 | * These values are only valid for | ||
847 | * #GNUNET_FS_STATUS_PUBLISH_RESUME events. | 880 | * #GNUNET_FS_STATUS_PUBLISH_RESUME events. |
848 | */ | 881 | */ |
849 | struct | 882 | struct |