aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_util.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-07-25 00:12:24 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2021-07-25 00:12:24 +0200
commite068078b3ae07d67e9d4b75574075773a88c4a3d (patch)
treea8d9f6ba1e8c23675c5e3a442cc71d985dd49dd9 /src/gnunet_chat_util.c
parentea62f25fccb6c10d5f4a32a8d259116c51d94ee3 (diff)
downloadlibgnunetchat-e068078b3ae07d67e9d4b75574075773a88c4a3d.tar.gz
libgnunetchat-e068078b3ae07d67e9d4b75574075773a88c4a3d.zip
Included usage of message flags and added per chat config io
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_util.c')
-rw-r--r--src/gnunet_chat_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
index cdbd46c..836286f 100644
--- a/src/gnunet_chat_util.c
+++ b/src/gnunet_chat_util.c
@@ -175,14 +175,15 @@ util_decrypt_file (const char *filename,
175} 175}
176 176
177int 177int
178util_get_filename (const char *directory, const struct GNUNET_HashCode *hash, 178util_get_filename (const char *directory, const char *subdir,
179 const struct GNUNET_HashCode *hash,
179 char **filename) 180 char **filename)
180{ 181{
181 return GNUNET_asprintf ( 182 return GNUNET_asprintf (
182 filename, 183 filename,
183 "%s%s%c%s", 184 "%s%s%c%s",
184 directory, 185 directory,
185 "files", 186 subdir,
186 DIR_SEPARATOR, 187 DIR_SEPARATOR,
187 GNUNET_h2s_full(hash) 188 GNUNET_h2s_full(hash)
188 ); 189 );