From ba8fe8ba1afa40046b209b1ae8ba290a09c90050 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Mon, 10 Jan 2022 18:35:45 +0100 Subject: Implemented function to get a files name Signed-off-by: TheJackiMonster --- include/gnunet_chat_lib.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/gnunet_chat_lib.h') diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index 785d3ff..d15af55 100644 --- a/include/gnunet_chat_lib.h +++ b/include/gnunet_chat_lib.h @@ -778,6 +778,15 @@ int GNUNET_CHAT_message_delete (const struct GNUNET_CHAT_Message *message, struct GNUNET_TIME_Relative delay); +/** + * Returns the name of a given file handle. + * + * @param[in] file File handle + * @return The file name of file + */ +const char* +GNUNET_CHAT_file_get_name (const struct GNUNET_CHAT_File *file); + /** * Returns the hash of a given file handle. * -- cgit v1.2.3