diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-05 13:35:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-05 13:35:24 +0000 |
commit | d88de8d8a75a65843d18f9d89066cc73aa6c25fc (patch) | |
tree | 5f122241877ef4e5b366809179d9c5aa9e784ebb /src/fs/gnunet-search.c | |
parent | c219e25c74ee0982167b675a1c9510b5a8d2c60b (diff) | |
download | gnunet-d88de8d8a75a65843d18f9d89066cc73aa6c25fc.tar.gz gnunet-d88de8d8a75a65843d18f9d89066cc73aa6c25fc.zip |
fix
Diffstat (limited to 'src/fs/gnunet-search.c')
-rw-r--r-- | src/fs/gnunet-search.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/fs/gnunet-search.c b/src/fs/gnunet-search.c index e8d660375..6ad387d71 100644 --- a/src/fs/gnunet-search.c +++ b/src/fs/gnunet-search.c | |||
@@ -46,6 +46,23 @@ static unsigned int anonymity = 1; | |||
46 | 46 | ||
47 | static int verbose; | 47 | static int verbose; |
48 | 48 | ||
49 | /** | ||
50 | * Type of a function that libextractor calls for each | ||
51 | * meta data item found. | ||
52 | * | ||
53 | * @param cls closure (user-defined, unused) | ||
54 | * @param plugin_name name of the plugin that produced this value; | ||
55 | * special values can be used (i.e. '<zlib>' for zlib being | ||
56 | * used in the main libextractor library and yielding | ||
57 | * meta data). | ||
58 | * @param type libextractor-type describing the meta data | ||
59 | * @param format basic format information about data | ||
60 | * @param data_mime_type mime-type of data (not of the original file); | ||
61 | * can be NULL (if mime-type is not known) | ||
62 | * @param data actual meta-data found | ||
63 | * @param data_len number of bytes in data | ||
64 | * @return 0 to continue extracting, 1 to abort | ||
65 | */ | ||
49 | static int | 66 | static int |
50 | item_printer (void *cls, | 67 | item_printer (void *cls, |
51 | const char *plugin_name, | 68 | const char *plugin_name, |
@@ -62,7 +79,7 @@ item_printer (void *cls, | |||
62 | dgettext (LIBEXTRACTOR_GETTEXT_DOMAIN, | 79 | dgettext (LIBEXTRACTOR_GETTEXT_DOMAIN, |
63 | EXTRACTOR_metatype_to_string (type)), | 80 | EXTRACTOR_metatype_to_string (type)), |
64 | data); | 81 | data); |
65 | return GNUNET_OK; | 82 | return 0; |
66 | } | 83 | } |
67 | 84 | ||
68 | 85 | ||