aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_fs_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r--src/include/gnunet_fs_service.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h
index e3c99f3e9..acd059c96 100644
--- a/src/include/gnunet_fs_service.h
+++ b/src/include/gnunet_fs_service.h
@@ -2193,12 +2193,32 @@ GNUNET_FS_namespace_list_updateable (struct GNUNET_FS_Namespace *namespace,
2193 2193
2194 2194
2195/** 2195/**
2196 * Options for searching. Compatible options
2197 * can be OR'ed together.
2198 */
2199enum GNUNET_FS_SearchOptions
2200 {
2201 /**
2202 * No options (use defaults for everything).
2203 */
2204 GNUNET_FS_SEARCH_OPTION_NONE = 0,
2205
2206 /**
2207 * Only search the local host, do not search remote systems (no P2P)
2208 */
2209 GNUNET_FS_SEARCH_OPTION_LOOPBACK_ONLY = 1
2210
2211 };
2212
2213
2214/**
2196 * Start search for content. 2215 * Start search for content.
2197 * 2216 *
2198 * @param h handle to the file sharing subsystem 2217 * @param h handle to the file sharing subsystem
2199 * @param uri specifies the search parameters; can be 2218 * @param uri specifies the search parameters; can be
2200 * a KSK URI or an SKS URI. 2219 * a KSK URI or an SKS URI.
2201 * @param anonymity desired level of anonymity 2220 * @param anonymity desired level of anonymity
2221 * @param options options for the search
2202 * @param cctx initial value for the client context 2222 * @param cctx initial value for the client context
2203 * @return context that can be used to control the search 2223 * @return context that can be used to control the search
2204 */ 2224 */
@@ -2206,6 +2226,7 @@ struct GNUNET_FS_SearchContext *
2206GNUNET_FS_search_start (struct GNUNET_FS_Handle *h, 2226GNUNET_FS_search_start (struct GNUNET_FS_Handle *h,
2207 const struct GNUNET_FS_Uri *uri, 2227 const struct GNUNET_FS_Uri *uri,
2208 uint32_t anonymity, 2228 uint32_t anonymity,
2229 enum GNUNET_FS_SearchOptions options,
2209 void *cctx); 2230 void *cctx);
2210 2231
2211 2232
@@ -2248,18 +2269,23 @@ enum GNUNET_FS_DownloadOptions
2248 * No options (use defaults for everything). 2269 * No options (use defaults for everything).
2249 */ 2270 */
2250 GNUNET_FS_DOWNLOAD_OPTION_NONE = 0, 2271 GNUNET_FS_DOWNLOAD_OPTION_NONE = 0,
2272
2273 /**
2274 * Only download from the local host, do not access remote systems (no P2P)
2275 */
2276 GNUNET_FS_DOWNLOAD_OPTION_LOOPBACK_ONLY = 1,
2251 2277
2252 /** 2278 /**
2253 * Do a recursive download (that is, automatically trigger the 2279 * Do a recursive download (that is, automatically trigger the
2254 * download of files in directories). 2280 * download of files in directories).
2255 */ 2281 */
2256 GNUNET_FS_DOWNLOAD_OPTION_RECURSIVE = 1, 2282 GNUNET_FS_DOWNLOAD_OPTION_RECURSIVE = 2,
2257 2283
2258 /** 2284 /**
2259 * Do not append temporary data to 2285 * Do not append temporary data to
2260 * the target file (for the IBlocks). 2286 * the target file (for the IBlocks).
2261 */ 2287 */
2262 GNUNET_FS_DOWNLOAD_NO_TEMPORARIES = 2, 2288 GNUNET_FS_DOWNLOAD_NO_TEMPORARIES = 4,
2263 2289
2264 /** 2290 /**
2265 * Internal option used to flag this download as a 'probe' for a 2291 * Internal option used to flag this download as a 'probe' for a