diff options
Diffstat (limited to 'src/fs/gnunet-directory.c')
-rw-r--r-- | src/fs/gnunet-directory.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fs/gnunet-directory.c b/src/fs/gnunet-directory.c index ef5c40ae2..ab9f2905a 100644 --- a/src/fs/gnunet-directory.c +++ b/src/fs/gnunet-directory.c | |||
@@ -23,6 +23,7 @@ | |||
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | */ | 24 | */ |
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | |||
26 | #include "gnunet_fs_service.h" | 27 | #include "gnunet_fs_service.h" |
27 | 28 | ||
28 | static int ret; | 29 | static int ret; |
@@ -90,20 +91,20 @@ static void | |||
90 | print_entry (void *cls, | 91 | print_entry (void *cls, |
91 | const char *filename, | 92 | const char *filename, |
92 | const struct GNUNET_FS_Uri *uri, | 93 | const struct GNUNET_FS_Uri *uri, |
93 | const struct GNUNET_CONTAINER_MetaData *meta, | 94 | const struct GNUNET_FS_MetaData *meta, |
94 | size_t length, | 95 | size_t length, |
95 | const void *data) | 96 | const void *data) |
96 | { | 97 | { |
97 | char *string; | 98 | char *string; |
98 | char *name; | 99 | char *name; |
99 | 100 | ||
100 | name = GNUNET_CONTAINER_meta_data_get_by_type ( | 101 | name = GNUNET_FS_meta_data_get_by_type ( |
101 | meta, | 102 | meta, |
102 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME); | 103 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME); |
103 | if (uri == NULL) | 104 | if (uri == NULL) |
104 | { | 105 | { |
105 | printf (_ ("Directory `%s' meta data:\n"), name ? name : ""); | 106 | printf (_ ("Directory `%s' meta data:\n"), name ? name : ""); |
106 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); | 107 | GNUNET_FS_meta_data_iterate (meta, &item_printer, NULL); |
107 | printf ("\n"); | 108 | printf ("\n"); |
108 | printf (_ ("Directory `%s' contents:\n"), name ? name : ""); | 109 | printf (_ ("Directory `%s' contents:\n"), name ? name : ""); |
109 | GNUNET_free (name); | 110 | GNUNET_free (name); |
@@ -112,7 +113,7 @@ print_entry (void *cls, | |||
112 | string = GNUNET_FS_uri_to_string (uri); | 113 | string = GNUNET_FS_uri_to_string (uri); |
113 | printf ("%s (%s):\n", name ? name : "", string); | 114 | printf ("%s (%s):\n", name ? name : "", string); |
114 | GNUNET_free (string); | 115 | GNUNET_free (string); |
115 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); | 116 | GNUNET_FS_meta_data_iterate (meta, &item_printer, NULL); |
116 | printf ("\n"); | 117 | printf ("\n"); |
117 | GNUNET_free (name); | 118 | GNUNET_free (name); |
118 | } | 119 | } |