diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_publish-dialog.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_publish-dialog.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c index db86cd26..e42cbb7d 100644 --- a/src/fs/gnunet-fs-gtk_publish-dialog.c +++ b/src/fs/gnunet-fs-gtk_publish-dialog.c | |||
@@ -586,11 +586,11 @@ create_dir_at_iter (struct MainPublishingDialogContext *ctx, | |||
586 | struct GNUNET_FS_FileInformation *fi; | 586 | struct GNUNET_FS_FileInformation *fi; |
587 | GtkTreeRowReference *row_reference; | 587 | GtkTreeRowReference *row_reference; |
588 | GtkTreePath *path; | 588 | GtkTreePath *path; |
589 | struct GNUNET_CONTAINER_MetaData *meta; | 589 | struct GNUNET_FS_MetaData *meta; |
590 | 590 | ||
591 | meta = GNUNET_CONTAINER_meta_data_create (); | 591 | meta = GNUNET_FS_meta_data_create (); |
592 | GNUNET_FS_meta_data_make_directory (meta); | 592 | GNUNET_FS_meta_data_make_directory (meta); |
593 | GNUNET_CONTAINER_meta_data_insert (meta, | 593 | GNUNET_FS_meta_data_insert (meta, |
594 | "<gnunet-gtk>", | 594 | "<gnunet-gtk>", |
595 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME, | 595 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME, |
596 | EXTRACTOR_METAFORMAT_UTF8, | 596 | EXTRACTOR_METAFORMAT_UTF8, |
@@ -611,7 +611,7 @@ create_dir_at_iter (struct MainPublishingDialogContext *ctx, | |||
611 | meta, | 611 | meta, |
612 | bo, | 612 | bo, |
613 | name); | 613 | name); |
614 | GNUNET_CONTAINER_meta_data_destroy (meta); | 614 | GNUNET_FS_meta_data_destroy (meta); |
615 | gtk_tree_store_set (GTK_TREE_STORE (ctx->file_info_treemodel), | 615 | gtk_tree_store_set (GTK_TREE_STORE (ctx->file_info_treemodel), |
616 | pos, | 616 | pos, |
617 | PUBLISH_MC_FILESIZE, | 617 | PUBLISH_MC_FILESIZE, |
@@ -1226,7 +1226,7 @@ static int | |||
1226 | free_fi_row_reference (void *cls, | 1226 | free_fi_row_reference (void *cls, |
1227 | struct GNUNET_FS_FileInformation *fi, | 1227 | struct GNUNET_FS_FileInformation *fi, |
1228 | uint64_t length, | 1228 | uint64_t length, |
1229 | struct GNUNET_CONTAINER_MetaData *meta, | 1229 | struct GNUNET_FS_MetaData *meta, |
1230 | struct GNUNET_FS_Uri **uri, | 1230 | struct GNUNET_FS_Uri **uri, |
1231 | struct GNUNET_FS_BlockOptions *bo, | 1231 | struct GNUNET_FS_BlockOptions *bo, |
1232 | int *do_index, | 1232 | int *do_index, |
@@ -1453,12 +1453,12 @@ add_item (struct AddDirClientContext *adcc, | |||
1453 | { | 1453 | { |
1454 | /* update meta data mime type (force to be GNUnet-directory) */ | 1454 | /* update meta data mime type (force to be GNUnet-directory) */ |
1455 | if (NULL != item->meta) | 1455 | if (NULL != item->meta) |
1456 | GNUNET_CONTAINER_meta_data_delete (item->meta, | 1456 | GNUNET_FS_meta_data_delete (item->meta, |
1457 | EXTRACTOR_METATYPE_MIMETYPE, | 1457 | EXTRACTOR_METATYPE_MIMETYPE, |
1458 | NULL, | 1458 | NULL, |
1459 | 0); | 1459 | 0); |
1460 | else | 1460 | else |
1461 | item->meta = GNUNET_CONTAINER_meta_data_create (); | 1461 | item->meta = GNUNET_FS_meta_data_create (); |
1462 | GNUNET_FS_meta_data_make_directory (item->meta); | 1462 | GNUNET_FS_meta_data_make_directory (item->meta); |
1463 | 1463 | ||
1464 | fi = GNUNET_FS_file_information_create_empty_directory ( | 1464 | fi = GNUNET_FS_file_information_create_empty_directory ( |
@@ -2019,7 +2019,7 @@ static int | |||
2019 | update_treeview_after_edit (void *cls, | 2019 | update_treeview_after_edit (void *cls, |
2020 | struct GNUNET_FS_FileInformation *fi, | 2020 | struct GNUNET_FS_FileInformation *fi, |
2021 | uint64_t length, | 2021 | uint64_t length, |
2022 | struct GNUNET_CONTAINER_MetaData *meta, | 2022 | struct GNUNET_FS_MetaData *meta, |
2023 | struct GNUNET_FS_Uri **uri, | 2023 | struct GNUNET_FS_Uri **uri, |
2024 | struct GNUNET_FS_BlockOptions *bo, | 2024 | struct GNUNET_FS_BlockOptions *bo, |
2025 | int *do_index, | 2025 | int *do_index, |
@@ -2028,7 +2028,7 @@ update_treeview_after_edit (void *cls, | |||
2028 | struct EditPublishContext *epc = cls; | 2028 | struct EditPublishContext *epc = cls; |
2029 | char *name; | 2029 | char *name; |
2030 | 2030 | ||
2031 | name = GNUNET_CONTAINER_meta_data_get_by_type ( | 2031 | name = GNUNET_FS_meta_data_get_by_type ( |
2032 | meta, | 2032 | meta, |
2033 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME); | 2033 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME); |
2034 | gtk_tree_store_set (GTK_TREE_STORE (epc->tm), | 2034 | gtk_tree_store_set (GTK_TREE_STORE (epc->tm), |
@@ -2232,7 +2232,7 @@ static int | |||
2232 | insert_advertisement (void *cls, | 2232 | insert_advertisement (void *cls, |
2233 | struct GNUNET_FS_FileInformation *fi, | 2233 | struct GNUNET_FS_FileInformation *fi, |
2234 | uint64_t length, | 2234 | uint64_t length, |
2235 | struct GNUNET_CONTAINER_MetaData *meta, | 2235 | struct GNUNET_FS_MetaData *meta, |
2236 | struct GNUNET_FS_Uri **uri, | 2236 | struct GNUNET_FS_Uri **uri, |
2237 | struct GNUNET_FS_BlockOptions *bo, | 2237 | struct GNUNET_FS_BlockOptions *bo, |
2238 | int *do_index, | 2238 | int *do_index, |
@@ -2258,7 +2258,7 @@ insert_advertisement (void *cls, | |||
2258 | if (NULL == sks_uri_string) | 2258 | if (NULL == sks_uri_string) |
2259 | return GNUNET_SYSERR; | 2259 | return GNUNET_SYSERR; |
2260 | 2260 | ||
2261 | GNUNET_CONTAINER_meta_data_insert (meta, | 2261 | GNUNET_FS_meta_data_insert (meta, |
2262 | "<gnunet>", | 2262 | "<gnunet>", |
2263 | EXTRACTOR_METATYPE_URI, | 2263 | EXTRACTOR_METATYPE_URI, |
2264 | EXTRACTOR_METAFORMAT_UTF8, | 2264 | EXTRACTOR_METAFORMAT_UTF8, |
@@ -2416,7 +2416,7 @@ static int | |||
2416 | clear_keywords_in_file_information (void *cls, | 2416 | clear_keywords_in_file_information (void *cls, |
2417 | struct GNUNET_FS_FileInformation *fi, | 2417 | struct GNUNET_FS_FileInformation *fi, |
2418 | uint64_t length, | 2418 | uint64_t length, |
2419 | struct GNUNET_CONTAINER_MetaData *meta, | 2419 | struct GNUNET_FS_MetaData *meta, |
2420 | struct GNUNET_FS_Uri **uri, | 2420 | struct GNUNET_FS_Uri **uri, |
2421 | struct GNUNET_FS_BlockOptions *bo, | 2421 | struct GNUNET_FS_BlockOptions *bo, |
2422 | int *do_index, | 2422 | int *do_index, |
@@ -2620,7 +2620,7 @@ static void | |||
2620 | add_updateable_to_ts (void *cls, | 2620 | add_updateable_to_ts (void *cls, |
2621 | const char *last_id, | 2621 | const char *last_id, |
2622 | const struct GNUNET_FS_Uri *last_uri, | 2622 | const struct GNUNET_FS_Uri *last_uri, |
2623 | const struct GNUNET_CONTAINER_MetaData *last_meta, | 2623 | const struct GNUNET_FS_MetaData *last_meta, |
2624 | const char *next_id) | 2624 | const char *next_id) |
2625 | { | 2625 | { |
2626 | struct UpdateableContext *uc = cls; | 2626 | struct UpdateableContext *uc = cls; |
@@ -2660,11 +2660,11 @@ add_updateable_to_ts (void *cls, | |||
2660 | urilen = 0; | 2660 | urilen = 0; |
2661 | 2661 | ||
2662 | mdbuf = NULL; | 2662 | mdbuf = NULL; |
2663 | mdsize = GNUNET_CONTAINER_meta_data_serialize ( | 2663 | mdsize = GNUNET_FS_meta_data_serialize ( |
2664 | last_meta, | 2664 | last_meta, |
2665 | &mdbuf, | 2665 | &mdbuf, |
2666 | 64 * 1024, | 2666 | 64 * 1024, |
2667 | GNUNET_CONTAINER_META_DATA_SERIALIZE_FULL); | 2667 | GNUNET_FS_META_DATA_SERIALIZE_FULL); |
2668 | if (0 > mdsize) | 2668 | if (0 > mdsize) |
2669 | mdsize = 0; | 2669 | mdsize = 0; |
2670 | 2670 | ||