diff options
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r-- | src/include/gnunet_fs_service.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index 32f7dad40..d1859fa05 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -2775,6 +2775,33 @@ void | |||
2775 | GNUNET_FS_search_stop (struct GNUNET_FS_SearchContext *sc); | 2775 | GNUNET_FS_search_stop (struct GNUNET_FS_SearchContext *sc); |
2776 | 2776 | ||
2777 | 2777 | ||
2778 | /** | ||
2779 | * Start download probes for the given search result. | ||
2780 | * | ||
2781 | * @param h file-sharing handle to use for the operation | ||
2782 | * @param uri URI to probe | ||
2783 | * @param meta meta data associated with the URI | ||
2784 | * @param client_info client info pointer to use for associated events | ||
2785 | * @param anonymity anonymity level to use for the probes | ||
2786 | * @return the search result handle to access the probe activity | ||
2787 | */ | ||
2788 | struct GNUNET_FS_SearchResult * | ||
2789 | GNUNET_FS_probe (struct GNUNET_FS_Handle *h, | ||
2790 | const struct GNUNET_FS_Uri *uri, | ||
2791 | const struct GNUNET_CONTAINER_MetaData *meta, | ||
2792 | void *client_info, | ||
2793 | uint32_t anonymity); | ||
2794 | |||
2795 | |||
2796 | /** | ||
2797 | * Stop probe activity. Must ONLY be used on values | ||
2798 | * returned from 'GNUNET_FS_probe'. | ||
2799 | * | ||
2800 | * @param sr search result to stop probing for (freed) | ||
2801 | * @return the value of the 'client_info' pointer | ||
2802 | */ | ||
2803 | void * | ||
2804 | GNUNET_FS_probe_stop (struct GNUNET_FS_SearchResult *sr); | ||
2778 | 2805 | ||
2779 | 2806 | ||
2780 | /** | 2807 | /** |