aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/fs_download.c1
-rw-r--r--src/fs/fs_publish.c1
-rw-r--r--src/fs/fs_search.c2
-rw-r--r--src/fs/fs_unindex.c2
-rw-r--r--src/include/gnunet_fs_service.h4
5 files changed, 9 insertions, 1 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index dc4d6723b..2371e6544 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -122,6 +122,7 @@ GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi,
122 pi->value.download.eta = 122 pi->value.download.eta =
123 GNUNET_TIME_calculate_eta (dc->start_time, dc->completed, dc->length); 123 GNUNET_TIME_calculate_eta (dc->start_time, dc->completed, dc->length);
124 pi->value.download.is_active = (NULL == dc->client) ? GNUNET_NO : GNUNET_YES; 124 pi->value.download.is_active = (NULL == dc->client) ? GNUNET_NO : GNUNET_YES;
125 pi->fsh = dc->h;
125 if (0 == (dc->options & GNUNET_FS_DOWNLOAD_IS_PROBE)) 126 if (0 == (dc->options & GNUNET_FS_DOWNLOAD_IS_PROBE))
126 dc->client_info = dc->h->upcb (dc->h->upcb_cls, pi); 127 dc->client_info = dc->h->upcb (dc->h->upcb_cls, pi);
127 else 128 else
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index 30ab1ee6f..041d4213c 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -64,6 +64,7 @@ GNUNET_FS_publish_make_status_ (struct GNUNET_FS_ProgressInfo *pi,
64 pi->value.publish.duration = 64 pi->value.publish.duration =
65 GNUNET_TIME_absolute_get_duration (p->start_time); 65 GNUNET_TIME_absolute_get_duration (p->start_time);
66 pi->value.publish.anonymity = p->bo.anonymity_level; 66 pi->value.publish.anonymity = p->bo.anonymity_level;
67 pi->fsh = pc->h;
67 return pc->h->upcb (pc->h->upcb_cls, pi); 68 return pc->h->upcb (pc->h->upcb_cls, pi);
68} 69}
69 70
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c
index 2fa14f68d..10627753a 100644
--- a/src/fs/fs_search.c
+++ b/src/fs/fs_search.c
@@ -61,6 +61,7 @@ GNUNET_FS_search_make_status_ (struct GNUNET_FS_ProgressInfo *pi,
61 ? GNUNET_TIME_absolute_get_duration (sc->start_time) 61 ? GNUNET_TIME_absolute_get_duration (sc->start_time)
62 : GNUNET_TIME_UNIT_ZERO; 62 : GNUNET_TIME_UNIT_ZERO;
63 pi->value.search.anonymity = (NULL != sc) ? sc->anonymity : 0; 63 pi->value.search.anonymity = (NULL != sc) ? sc->anonymity : 0;
64 pi->fsh = h;
64 ret = h->upcb (h->upcb_cls, pi); 65 ret = h->upcb (h->upcb_cls, pi);
65 return ret; 66 return ret;
66} 67}
@@ -457,6 +458,7 @@ GNUNET_FS_probe (struct GNUNET_FS_Handle *h,
457{ 458{
458 struct GNUNET_FS_SearchResult *sr; 459 struct GNUNET_FS_SearchResult *sr;
459 460
461 GNUNET_assert (NULL != h);
460 sr = GNUNET_new (struct GNUNET_FS_SearchResult); 462 sr = GNUNET_new (struct GNUNET_FS_SearchResult);
461 sr->h = h; 463 sr->h = h;
462 sr->uri = GNUNET_FS_uri_dup (uri); 464 sr->uri = GNUNET_FS_uri_dup (uri);
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index 365698c4f..132109c59 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -89,8 +89,8 @@ GNUNET_FS_unindex_make_status_ (struct GNUNET_FS_ProgressInfo *pi,
89 pi->value.unindex.duration = 89 pi->value.unindex.duration =
90 GNUNET_TIME_absolute_get_duration (uc->start_time); 90 GNUNET_TIME_absolute_get_duration (uc->start_time);
91 pi->value.unindex.completed = offset; 91 pi->value.unindex.completed = offset;
92 pi->fsh = uc->h;
92 uc->client_info = uc->h->upcb (uc->h->upcb_cls, pi); 93 uc->client_info = uc->h->upcb (uc->h->upcb_cls, pi);
93
94} 94}
95 95
96 96
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h
index d1859fa05..a1e2dca23 100644
--- a/src/include/gnunet_fs_service.h
+++ b/src/include/gnunet_fs_service.h
@@ -1912,6 +1912,10 @@ struct GNUNET_FS_ProgressInfo
1912 */ 1912 */
1913 enum GNUNET_FS_Status status; 1913 enum GNUNET_FS_Status status;
1914 1914
1915 /**
1916 * File-sharing handle that generated the event.
1917 */
1918 struct GNUNET_FS_Handle *fsh;
1915}; 1919};
1916 1920
1917 1921