diff options
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/fs/fs.c | 2 | ||||
-rw-r--r-- | src/fs/fs_file_information.c | 9 | ||||
-rw-r--r-- | src/fs/fs_publish.c | 6 | ||||
-rw-r--r-- | src/fs/gnunet-publish.c | 2 | ||||
-rw-r--r-- | src/fs/test_fs_file_information.c | 1 | ||||
-rw-r--r-- | src/include/gnunet_fs_service.h | 2 |
7 files changed, 22 insertions, 1 deletions
@@ -23,7 +23,6 @@ | |||
23 | [On W32, we need to select after calling socket before doing connect etc.] | 23 | [On W32, we need to select after calling socket before doing connect etc.] |
24 | * GNUNET-GTK: | 24 | * GNUNET-GTK: |
25 | - implement publish dialog | 25 | - implement publish dialog |
26 | + add (single file) | ||
27 | + edit (meta data add, meta data del, meta data type population, keyword add (button, activate entry line), | 26 | + edit (meta data add, meta data del, meta data type population, keyword add (button, activate entry line), |
28 | keyword remove, anonymity level, priority, index/insert, normalize keywords, | 27 | keyword remove, anonymity level, priority, index/insert, normalize keywords, |
29 | previews, preview widget for file chooser!?) | 28 | previews, preview widget for file chooser!?) |
diff --git a/src/fs/fs.c b/src/fs/fs.c index 9797becad..ece6350ca 100644 --- a/src/fs/fs.c +++ b/src/fs/fs.c | |||
@@ -1334,6 +1334,7 @@ find_file_position (struct GNUNET_FS_FileInformation *pos, | |||
1334 | * @param uri pointer to the keywords that will be used for this entry (can be modified) | 1334 | * @param uri pointer to the keywords that will be used for this entry (can be modified) |
1335 | * @param anonymity pointer to selected anonymity level (can be modified) | 1335 | * @param anonymity pointer to selected anonymity level (can be modified) |
1336 | * @param priority pointer to selected priority (can be modified) | 1336 | * @param priority pointer to selected priority (can be modified) |
1337 | * @param do_index should we index? | ||
1337 | * @param expirationTime pointer to selected expiration time (can be modified) | 1338 | * @param expirationTime pointer to selected expiration time (can be modified) |
1338 | * @param client_info pointer to client context set upon creation (can be modified) | 1339 | * @param client_info pointer to client context set upon creation (can be modified) |
1339 | * @return GNUNET_OK to continue (always) | 1340 | * @return GNUNET_OK to continue (always) |
@@ -1346,6 +1347,7 @@ fip_signal_resume(void *cls, | |||
1346 | struct GNUNET_FS_Uri **uri, | 1347 | struct GNUNET_FS_Uri **uri, |
1347 | uint32_t *anonymity, | 1348 | uint32_t *anonymity, |
1348 | uint32_t *priority, | 1349 | uint32_t *priority, |
1350 | int *do_index, | ||
1349 | struct GNUNET_TIME_Absolute *expirationTime, | 1351 | struct GNUNET_TIME_Absolute *expirationTime, |
1350 | void **client_info) | 1352 | void **client_info) |
1351 | { | 1353 | { |
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index 367061cae..2e9b7b667 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c | |||
@@ -732,7 +732,9 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
732 | void *proc_cls) | 732 | void *proc_cls) |
733 | { | 733 | { |
734 | struct GNUNET_FS_FileInformation *pos; | 734 | struct GNUNET_FS_FileInformation *pos; |
735 | int no; | ||
735 | 736 | ||
737 | no = GNUNET_NO; | ||
736 | if (GNUNET_OK != | 738 | if (GNUNET_OK != |
737 | proc (proc_cls, | 739 | proc (proc_cls, |
738 | dir, | 740 | dir, |
@@ -741,6 +743,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
741 | &dir->keywords, | 743 | &dir->keywords, |
742 | &dir->anonymity, | 744 | &dir->anonymity, |
743 | &dir->priority, | 745 | &dir->priority, |
746 | (dir->is_directory) ? &no : &dir->data.file.do_index, | ||
744 | &dir->expirationTime, | 747 | &dir->expirationTime, |
745 | &dir->client_info)) | 748 | &dir->client_info)) |
746 | return; | 749 | return; |
@@ -749,6 +752,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
749 | pos = dir->data.dir.entries; | 752 | pos = dir->data.dir.entries; |
750 | while (pos != NULL) | 753 | while (pos != NULL) |
751 | { | 754 | { |
755 | no = GNUNET_NO; | ||
752 | if (GNUNET_OK != | 756 | if (GNUNET_OK != |
753 | proc (proc_cls, | 757 | proc (proc_cls, |
754 | pos, | 758 | pos, |
@@ -757,6 +761,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
757 | &pos->keywords, | 761 | &pos->keywords, |
758 | &pos->anonymity, | 762 | &pos->anonymity, |
759 | &pos->priority, | 763 | &pos->priority, |
764 | (dir->is_directory) ? &no : &dir->data.file.do_index, | ||
760 | &pos->expirationTime, | 765 | &pos->expirationTime, |
761 | &pos->client_info)) | 766 | &pos->client_info)) |
762 | break; | 767 | break; |
@@ -781,7 +786,9 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
781 | void *cleaner_cls) | 786 | void *cleaner_cls) |
782 | { | 787 | { |
783 | struct GNUNET_FS_FileInformation *pos; | 788 | struct GNUNET_FS_FileInformation *pos; |
789 | int no; | ||
784 | 790 | ||
791 | no = GNUNET_NO; | ||
785 | if (fi->is_directory) | 792 | if (fi->is_directory) |
786 | { | 793 | { |
787 | /* clean up directory */ | 794 | /* clean up directory */ |
@@ -799,6 +806,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
799 | &fi->keywords, | 806 | &fi->keywords, |
800 | &fi->anonymity, | 807 | &fi->anonymity, |
801 | &fi->priority, | 808 | &fi->priority, |
809 | &no, | ||
802 | &fi->expirationTime, | 810 | &fi->expirationTime, |
803 | &fi->client_info); | 811 | &fi->client_info); |
804 | GNUNET_free_non_null (fi->data.dir.dir_data); | 812 | GNUNET_free_non_null (fi->data.dir.dir_data); |
@@ -818,6 +826,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
818 | &fi->keywords, | 826 | &fi->keywords, |
819 | &fi->anonymity, | 827 | &fi->anonymity, |
820 | &fi->priority, | 828 | &fi->priority, |
829 | &fi->data.file.do_index, | ||
821 | &fi->expirationTime, | 830 | &fi->expirationTime, |
822 | &fi->client_info); | 831 | &fi->client_info); |
823 | } | 832 | } |
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 4d93579bd..a7aa695f3 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -940,6 +940,7 @@ GNUNET_FS_publish_main_ (void *cls, | |||
940 | * @param uri pointer to the keywords that will be used for this entry (can be modified) | 940 | * @param uri pointer to the keywords that will be used for this entry (can be modified) |
941 | * @param anonymity pointer to selected anonymity level (can be modified) | 941 | * @param anonymity pointer to selected anonymity level (can be modified) |
942 | * @param priority pointer to selected priority (can be modified) | 942 | * @param priority pointer to selected priority (can be modified) |
943 | * @param do_index should we index? | ||
943 | * @param expirationTime pointer to selected expiration time (can be modified) | 944 | * @param expirationTime pointer to selected expiration time (can be modified) |
944 | * @param client_info pointer to client context set upon creation (can be modified) | 945 | * @param client_info pointer to client context set upon creation (can be modified) |
945 | * @return GNUNET_OK to continue (always) | 946 | * @return GNUNET_OK to continue (always) |
@@ -952,6 +953,7 @@ fip_signal_start(void *cls, | |||
952 | struct GNUNET_FS_Uri **uri, | 953 | struct GNUNET_FS_Uri **uri, |
953 | uint32_t *anonymity, | 954 | uint32_t *anonymity, |
954 | uint32_t *priority, | 955 | uint32_t *priority, |
956 | int *do_index, | ||
955 | struct GNUNET_TIME_Absolute *expirationTime, | 957 | struct GNUNET_TIME_Absolute *expirationTime, |
956 | void **client_info) | 958 | void **client_info) |
957 | { | 959 | { |
@@ -976,6 +978,7 @@ fip_signal_start(void *cls, | |||
976 | * @param uri pointer to the keywords that will be used for this entry (can be modified) | 978 | * @param uri pointer to the keywords that will be used for this entry (can be modified) |
977 | * @param anonymity pointer to selected anonymity level (can be modified) | 979 | * @param anonymity pointer to selected anonymity level (can be modified) |
978 | * @param priority pointer to selected priority (can be modified) | 980 | * @param priority pointer to selected priority (can be modified) |
981 | * @param do_index should we index? | ||
979 | * @param expirationTime pointer to selected expiration time (can be modified) | 982 | * @param expirationTime pointer to selected expiration time (can be modified) |
980 | * @param client_info pointer to client context set upon creation (can be modified) | 983 | * @param client_info pointer to client context set upon creation (can be modified) |
981 | * @return GNUNET_OK to continue (always) | 984 | * @return GNUNET_OK to continue (always) |
@@ -988,6 +991,7 @@ fip_signal_suspend(void *cls, | |||
988 | struct GNUNET_FS_Uri **uri, | 991 | struct GNUNET_FS_Uri **uri, |
989 | uint32_t *anonymity, | 992 | uint32_t *anonymity, |
990 | uint32_t *priority, | 993 | uint32_t *priority, |
994 | int *do_index, | ||
991 | struct GNUNET_TIME_Absolute *expirationTime, | 995 | struct GNUNET_TIME_Absolute *expirationTime, |
992 | void **client_info) | 996 | void **client_info) |
993 | { | 997 | { |
@@ -1112,6 +1116,7 @@ GNUNET_FS_publish_start (struct GNUNET_FS_Handle *h, | |||
1112 | * @param uri pointer to the keywords that will be used for this entry (can be modified) | 1116 | * @param uri pointer to the keywords that will be used for this entry (can be modified) |
1113 | * @param anonymity pointer to selected anonymity level (can be modified) | 1117 | * @param anonymity pointer to selected anonymity level (can be modified) |
1114 | * @param priority pointer to selected priority (can be modified) | 1118 | * @param priority pointer to selected priority (can be modified) |
1119 | * @param do_index should we index? | ||
1115 | * @param expirationTime pointer to selected expiration time (can be modified) | 1120 | * @param expirationTime pointer to selected expiration time (can be modified) |
1116 | * @param client_info pointer to client context set upon creation (can be modified) | 1121 | * @param client_info pointer to client context set upon creation (can be modified) |
1117 | * @return GNUNET_OK to continue (always) | 1122 | * @return GNUNET_OK to continue (always) |
@@ -1124,6 +1129,7 @@ fip_signal_stop(void *cls, | |||
1124 | struct GNUNET_FS_Uri **uri, | 1129 | struct GNUNET_FS_Uri **uri, |
1125 | uint32_t *anonymity, | 1130 | uint32_t *anonymity, |
1126 | uint32_t *priority, | 1131 | uint32_t *priority, |
1132 | int *do_index, | ||
1127 | struct GNUNET_TIME_Absolute *expirationTime, | 1133 | struct GNUNET_TIME_Absolute *expirationTime, |
1128 | void **client_info) | 1134 | void **client_info) |
1129 | { | 1135 | { |
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index 519f3e35c..3dee82333 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c | |||
@@ -227,6 +227,7 @@ meta_printer (void *cls, | |||
227 | * @param uri pointer to the keywords that will be used for this entry (can be modified) | 227 | * @param uri pointer to the keywords that will be used for this entry (can be modified) |
228 | * @param anonymity pointer to selected anonymity level (can be modified) | 228 | * @param anonymity pointer to selected anonymity level (can be modified) |
229 | * @param priority pointer to selected priority (can be modified) | 229 | * @param priority pointer to selected priority (can be modified) |
230 | * @param do_index should we index? | ||
230 | * @param expirationTime pointer to selected expiration time (can be modified) | 231 | * @param expirationTime pointer to selected expiration time (can be modified) |
231 | * @param client_info pointer to client context set upon creation (can be modified) | 232 | * @param client_info pointer to client context set upon creation (can be modified) |
232 | * @return GNUNET_OK to continue, GNUNET_NO to remove | 233 | * @return GNUNET_OK to continue, GNUNET_NO to remove |
@@ -241,6 +242,7 @@ publish_inspector (void *cls, | |||
241 | struct GNUNET_FS_Uri **uri, | 242 | struct GNUNET_FS_Uri **uri, |
242 | unsigned int *anonymity, | 243 | unsigned int *anonymity, |
243 | unsigned int *priority, | 244 | unsigned int *priority, |
245 | int *do_index, | ||
244 | struct GNUNET_TIME_Absolute *expirationTime, | 246 | struct GNUNET_TIME_Absolute *expirationTime, |
245 | void **client_info) | 247 | void **client_info) |
246 | { | 248 | { |
diff --git a/src/fs/test_fs_file_information.c b/src/fs/test_fs_file_information.c index 2d66d5185..2574db7dc 100644 --- a/src/fs/test_fs_file_information.c +++ b/src/fs/test_fs_file_information.c | |||
@@ -57,6 +57,7 @@ mycleaner(void *cls, | |||
57 | struct GNUNET_FS_Uri **uri, | 57 | struct GNUNET_FS_Uri **uri, |
58 | uint32_t *anonymity, | 58 | uint32_t *anonymity, |
59 | uint32_t *priority, | 59 | uint32_t *priority, |
60 | int *do_index, | ||
60 | struct GNUNET_TIME_Absolute *expirationTime, | 61 | struct GNUNET_TIME_Absolute *expirationTime, |
61 | void **client_info) | 62 | void **client_info) |
62 | { | 63 | { |
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index a200406d5..c5db0a7fc 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -1600,6 +1600,7 @@ GNUNET_FS_meta_data_extract_from_file (struct | |||
1600 | * @param uri pointer to the keywords that will be used for this entry (can be modified) | 1600 | * @param uri pointer to the keywords that will be used for this entry (can be modified) |
1601 | * @param anonymity pointer to selected anonymity level (can be modified) | 1601 | * @param anonymity pointer to selected anonymity level (can be modified) |
1602 | * @param priority pointer to selected priority (can be modified) | 1602 | * @param priority pointer to selected priority (can be modified) |
1603 | * @param do_index should we index (can be modified) | ||
1603 | * @param expirationTime pointer to selected expiration time (can be modified) | 1604 | * @param expirationTime pointer to selected expiration time (can be modified) |
1604 | * @param client_info pointer to client context set upon creation (can be modified) | 1605 | * @param client_info pointer to client context set upon creation (can be modified) |
1605 | * @return GNUNET_OK to continue, GNUNET_NO to remove | 1606 | * @return GNUNET_OK to continue, GNUNET_NO to remove |
@@ -1613,6 +1614,7 @@ typedef int (*GNUNET_FS_FileInformationProcessor)(void *cls, | |||
1613 | struct GNUNET_FS_Uri **uri, | 1614 | struct GNUNET_FS_Uri **uri, |
1614 | uint32_t *anonymity, | 1615 | uint32_t *anonymity, |
1615 | uint32_t *priority, | 1616 | uint32_t *priority, |
1617 | int *do_index, | ||
1616 | struct GNUNET_TIME_Absolute *expirationTime, | 1618 | struct GNUNET_TIME_Absolute *expirationTime, |
1617 | void **client_info); | 1619 | void **client_info); |
1618 | 1620 | ||