diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-01-10 21:50:43 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-01-10 21:50:43 +0100 |
commit | 4db9842adc64fe254a2e61ce214b2fabb2fc67f8 (patch) | |
tree | 81e81bca056019843266b299d7c8e231ee3d028f /include/gnunet_chat_lib.h | |
parent | ba8fe8ba1afa40046b209b1ae8ba290a09c90050 (diff) | |
download | libgnunetchat-4db9842adc64fe254a2e61ce214b2fabb2fc67f8.tar.gz libgnunetchat-4db9842adc64fe254a2e61ce214b2fabb2fc67f8.zip |
Implemented using temporary file previews
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include/gnunet_chat_lib.h')
-rw-r--r-- | include/gnunet_chat_lib.h | 19 |
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 | |||
816 | GNUNET_CHAT_file_is_local (const struct GNUNET_CHAT_File *file); | 816 | GNUNET_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 | */ | ||
825 | const char* | ||
826 | GNUNET_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 | */ | ||
834 | void | ||
835 | GNUNET_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 | * |