aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-common.h')
-rw-r--r--src/fs/gnunet-fs-gtk-common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk-common.h b/src/fs/gnunet-fs-gtk-common.h
index 9484b0e7..d0d7b4f9 100644
--- a/src/fs/gnunet-fs-gtk-common.h
+++ b/src/fs/gnunet-fs-gtk-common.h
@@ -101,5 +101,23 @@ GNUNET_FS_GTK_add_meta_data_to_list_store (void *cls, const char *plugin_name,
101 const char *data_mime_type, 101 const char *data_mime_type,
102 const char *data, size_t data_len); 102 const char *data, size_t data_len);
103 103
104/**
105 * Converts metadata specified by @data of size @data_len
106 * and saved in format @format to UTF-8 encoded string.
107 * Works only for C-string and UTF8 metadata formats
108 * (returns NULL for everything else).
109 * Verifies UTF-8 strings.
110 *
111 * @param format format of the @data
112 * @param data data to convert
113 * @param data_len length of the data buffer (in bytes)
114 * @return NULL if can't be converted, allocated string otherwise,
115 * freeable with GNUNET_free* ().
116 */
117char *
118GNUNET_FS_GTK_dubious_meta_to_utf8 (enum EXTRACTOR_MetaFormat format,
119 const char *data, size_t data_len);
120
121
104#endif 122#endif
105/* end of gnunet-fs-gtk-common.h */ 123/* end of gnunet-fs-gtk-common.h */