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.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h
index e45a46ef4..a5bdae340 100644
--- a/src/include/gnunet_fs_service.h
+++ b/src/include/gnunet_fs_service.h
@@ -58,11 +58,11 @@ extern "C"
58 58
59/* ******************** URI API *********************** */ 59/* ******************** URI API *********************** */
60 60
61#define GNUNET_FS_URI_PREFIX "gnunet://fs/" 61#define GNUNET_FS_URI_PREFIX "gnunet://fs/"
62#define GNUNET_FS_SEARCH_INFIX "ksk/" 62#define GNUNET_FS_URI_KSK_INFIX "ksk/"
63#define GNUNET_FS_SUBSPACE_INFIX "sks/" 63#define GNUNET_FS_URI_SKS_INFIX "sks/"
64#define GNUNET_FS_FILE_INFIX "chk/" 64#define GNUNET_FS_URI_CHK_INFIX "chk/"
65#define GNUNET_FS_LOCATION_INFIX "loc/" 65#define GNUNET_FS_URI_LOC_INFIX "loc/"
66 66
67 67
68/** 68/**
@@ -378,7 +378,7 @@ GNUNET_FS_uri_test_loc (const struct GNUNET_FS_Uri *uri);
378 * @deprecated 378 * @deprecated
379 */ 379 */
380struct GNUNET_FS_Uri * 380struct GNUNET_FS_Uri *
381GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_MetaData *md); 381GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_CONTAINER_MetaData *md);
382 382
383 383
384/* ******************** command-line option parsing API *********************** */ 384/* ******************** command-line option parsing API *********************** */
@@ -396,7 +396,7 @@ GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_MetaData *md);
396 * @return GNUNET_OK on success 396 * @return GNUNET_OK on success
397 */ 397 */
398int 398int
399GNUNET_FS_getopt_configure_set_keywords (GNUNET_GETOPT_CommandLineProcessorContext* ctx, 399GNUNET_FS_getopt_configure_set_keywords (struct GNUNET_GETOPT_CommandLineProcessorContext* ctx,
400 void *scls, 400 void *scls,
401 const char *option, 401 const char *option,
402 const char *value); 402 const char *value);
@@ -415,7 +415,7 @@ GNUNET_FS_getopt_configure_set_keywords (GNUNET_GETOPT_CommandLineProcessorConte
415 * @return GNUNET_OK on success 415 * @return GNUNET_OK on success
416 */ 416 */
417int 417int
418GNUNET_FS_getopt_configure_set_metadata (GNUNET_GETOPT_CommandLineProcessorContext* ctx, 418GNUNET_FS_getopt_configure_set_metadata (struct GNUNET_GETOPT_CommandLineProcessorContext* ctx,
419 void *scls, 419 void *scls,
420 const char *option, 420 const char *option,
421 const char *value); 421 const char *value);
@@ -630,26 +630,6 @@ enum GNUNET_FS_Status
630 630
631 631
632/** 632/**
633 * Notification of FS to a client about the progress of an
634 * operation. Callbacks of this type will be used for uploads,
635 * downloads and searches. Some of the arguments depend a bit
636 * in their meaning on the context in which the callback is used.
637 *
638 * @param cls closure
639 * @param info details about the event, specifying the event type
640 * and various bits about the event
641 * @return client-context (for the next progress call
642 * for this operation; should be set to NULL for
643 * SUSPEND and STOPPED events). The value returned
644 * will be passed to future callbacks in the respective
645 * field in the GNUNET_FS_ProgressInfo struct.
646 */
647typedef int (*GNUNET_FS_ProgressCallback)
648 (void *cls,
649 const struct GNUNET_FS_ProgressInfo *info);
650
651
652/**
653 * Handle to one of our namespaces. 633 * Handle to one of our namespaces.
654 */ 634 */
655struct GNUNET_FS_Namespace; 635struct GNUNET_FS_Namespace;
@@ -1230,7 +1210,7 @@ struct GNUNET_FS_ProgressInfo
1230 /** 1210 /**
1231 * Hash-identifier for the namespace. 1211 * Hash-identifier for the namespace.
1232 */ 1212 */
1233 struct GNUNET_HashCode id; 1213 GNUNET_HashCode id;
1234 1214
1235 } namespace; 1215 } namespace;
1236 1216
@@ -1352,6 +1332,26 @@ struct GNUNET_FS_ProgressInfo
1352 1332
1353 1333
1354/** 1334/**
1335 * Notification of FS to a client about the progress of an
1336 * operation. Callbacks of this type will be used for uploads,
1337 * downloads and searches. Some of the arguments depend a bit
1338 * in their meaning on the context in which the callback is used.
1339 *
1340 * @param cls closure
1341 * @param info details about the event, specifying the event type
1342 * and various bits about the event
1343 * @return client-context (for the next progress call
1344 * for this operation; should be set to NULL for
1345 * SUSPEND and STOPPED events). The value returned
1346 * will be passed to future callbacks in the respective
1347 * field in the GNUNET_FS_ProgressInfo struct.
1348 */
1349typedef int (*GNUNET_FS_ProgressCallback)
1350 (void *cls,
1351 const struct GNUNET_FS_ProgressInfo *info);
1352
1353
1354/**
1355 * Handle to the file-sharing service. 1355 * Handle to the file-sharing service.
1356 */ 1356 */
1357struct GNUNET_FS_Handle; 1357struct GNUNET_FS_Handle;
@@ -1527,9 +1527,9 @@ GNUNET_FS_file_information_create_from_reader (void *client_info,
1527 * @param fi information about the file (should not be 1527 * @param fi information about the file (should not be
1528 * used henceforth by the caller) 1528 * used henceforth by the caller)
1529 */ 1529 */
1530typedef void (*GNUNET_FS_FileInformationProcessor)(void *cls, 1530typedef void (*GNUNET_FS_FileProcessor)(void *cls,
1531 const char *filename, 1531 const char *filename,
1532 struct GNUNET_FS_FileInformation *fi); 1532 struct GNUNET_FS_FileInformation *fi);
1533 1533
1534 1534
1535/** 1535/**
@@ -1661,7 +1661,7 @@ GNUNET_FS_file_information_add (struct GNUNET_FS_FileInformation *dir,
1661 */ 1661 */
1662void 1662void
1663GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, 1663GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir,
1664 struct GNUNET_FS_FileInformationProcessor proc, 1664 GNUNET_FS_FileInformationProcessor proc,
1665 void *proc_cls); 1665 void *proc_cls);
1666 1666
1667 1667
@@ -1699,7 +1699,7 @@ struct GNUNET_FS_ShareContext *
1699GNUNET_FS_share_start (struct GNUNET_FS_Handle *h, 1699GNUNET_FS_share_start (struct GNUNET_FS_Handle *h,
1700 void *ctx, 1700 void *ctx,
1701 const struct GNUNET_FS_FileInformation *fi, 1701 const struct GNUNET_FS_FileInformation *fi,
1702 struct GNUNET_FS_Namespace *namespace 1702 struct GNUNET_FS_Namespace *namespace,
1703 const char *nid, 1703 const char *nid,
1704 const char *nuid); 1704 const char *nuid);
1705 1705
@@ -1722,8 +1722,8 @@ GNUNET_FS_share_stop (struct GNUNET_FS_ShareContext *sc);
1722 * @param filename the name of the file 1722 * @param filename the name of the file
1723 * @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort 1723 * @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort
1724 */ 1724 */
1725typedef int (*GNUNET_FS_FileProcessor) (void *cls, 1725typedef int (*GNUNET_FS_IndexedFileProcessor) (void *cls,
1726 const char *filename); 1726 const char *filename);
1727 1727
1728 1728
1729/** 1729/**
@@ -1735,7 +1735,7 @@ typedef int (*GNUNET_FS_FileProcessor) (void *cls,
1735 */ 1735 */
1736void 1736void
1737GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, 1737GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h,
1738 GNUNET_FS_FileProcessor iterator, 1738 GNUNET_FS_IndexedFileProcessor iterator,
1739 void *iterator_cls); 1739 void *iterator_cls);
1740 1740
1741 1741
@@ -1842,7 +1842,7 @@ typedef void (*GNUNET_FS_NamespaceInfoProcessor) (void *cls,
1842 */ 1842 */
1843int 1843int
1844GNUNET_FS_namespace_list (struct GNUNET_FS_Handle *h, 1844GNUNET_FS_namespace_list (struct GNUNET_FS_Handle *h,
1845 GNUNET_FS_NamespaceProcessor cb, 1845 GNUNET_FS_NamespaceInfoProcessor cb,
1846 void *cb_cls); 1846 void *cb_cls);
1847 1847
1848 1848
@@ -2074,7 +2074,7 @@ GNUNET_FS_meta_data_make_directory (struct GNUNET_CONTAINER_MetaData *md);
2074typedef void (*GNUNET_FS_DirectoryEntryProcessor)(void *cls, 2074typedef void (*GNUNET_FS_DirectoryEntryProcessor)(void *cls,
2075 const char *filename, 2075 const char *filename,
2076 const struct GNUNET_FS_Uri *uri, 2076 const struct GNUNET_FS_Uri *uri,
2077 const struct GNUNET_FS_MetaData *meta, 2077 const struct GNUNET_CONTAINER_MetaData *meta,
2078 size_t length, 2078 size_t length,
2079 const void *data); 2079 const void *data);
2080 2080