aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-01-10 21:50:43 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-01-10 21:50:43 +0100
commit4db9842adc64fe254a2e61ce214b2fabb2fc67f8 (patch)
tree81e81bca056019843266b299d7c8e231ee3d028f /include
parentba8fe8ba1afa40046b209b1ae8ba290a09c90050 (diff)
downloadlibgnunetchat-4db9842adc64fe254a2e61ce214b2fabb2fc67f8.tar.gz
libgnunetchat-4db9842adc64fe254a2e61ce214b2fabb2fc67f8.zip
Implemented using temporary file previews
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/gnunet_chat_lib.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index d15af55..8e8ec4e 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -816,6 +816,25 @@ int
816GNUNET_CHAT_file_is_local (const struct GNUNET_CHAT_File *file); 816GNUNET_CHAT_file_is_local (const struct GNUNET_CHAT_File *file);
817 817
818/** 818/**
819 * Returns the temporary file name of the decrypted file preview
820 * of a given <i>file</i> handle.
821 *
822 * @param[in,out] file File handle
823 * @return The temporary file name or NULL on error
824 */
825const char*
826GNUNET_CHAT_file_open_preview (struct GNUNET_CHAT_File *file);
827
828/**
829 * Deletes the temporary decrypted file preview of a given <i>file</i>
830 * handle.
831 *
832 * @param[out] file File handle
833 */
834void
835GNUNET_CHAT_file_close_preview (struct GNUNET_CHAT_File *file);
836
837/**
819 * Sets a custom <i>user pointer</i> to a given <i>file</i> handle so it can 838 * Sets a custom <i>user pointer</i> to a given <i>file</i> handle so it can
820 * be accessed in file related callbacks. 839 * be accessed in file related callbacks.
821 * 840 *