aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-directory.c')
-rw-r--r--src/fs/gnunet-directory.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/fs/gnunet-directory.c b/src/fs/gnunet-directory.c
index 536766abb..c06e1aca2 100644
--- a/src/fs/gnunet-directory.c
+++ b/src/fs/gnunet-directory.c
@@ -36,13 +36,17 @@ static int ret;
36 * @param format format of data 36 * @param format format of data
37 * @param data_mime_type mime type of data 37 * @param data_mime_type mime type of data
38 * @param data value of the meta data 38 * @param data value of the meta data
39 * @param data_size number of bytes in data 39 * @param data_size number of bytes in @a data
40 * @return always 0 (to continue iterating) 40 * @return always 0 (to continue iterating)
41 */ 41 */
42static int 42static int
43item_printer (void *cls, const char *plugin_name, enum EXTRACTOR_MetaType type, 43item_printer (void *cls,
44 enum EXTRACTOR_MetaFormat format, const char *data_mime_type, 44 const char *plugin_name,
45 const char *data, size_t data_size) 45 enum EXTRACTOR_MetaType type,
46 enum EXTRACTOR_MetaFormat format,
47 const char *data_mime_type,
48 const char *data,
49 size_t data_size)
46{ 50{
47 if (type == EXTRACTOR_METATYPE_GNUNET_FULL_DATA) 51 if (type == EXTRACTOR_METATYPE_GNUNET_FULL_DATA)
48 { 52 {
@@ -55,9 +59,16 @@ item_printer (void *cls, const char *plugin_name, enum EXTRACTOR_MetaType type,
55 return 0; 59 return 0;
56 if (type == EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME) 60 if (type == EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME)
57 return 0; 61 return 0;
62#if HAVE_LIBEXTRACTOR
58 printf ("\t%20s: %s\n", 63 printf ("\t%20s: %s\n",
59 dgettext (LIBEXTRACTOR_GETTEXT_DOMAIN, 64 dgettext (LIBEXTRACTOR_GETTEXT_DOMAIN,
60 EXTRACTOR_metatype_to_string (type)), data); 65 EXTRACTOR_metatype_to_string (type)),
66 data);
67#else
68 printf ("\t%20d: %s\n",
69 type,
70 data);
71#endif
61 return 0; 72 return 0;
62} 73}
63 74