aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-01-06 23:41:30 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-01-06 23:41:30 +0100
commitaa8a1d1faeee94b92c3bb9094cbaa1c1e63f1e38 (patch)
tree88b03df371a67451b859911e7ee3c765e5f5b903 /include
parenta7308b22bf24131c5a0bf715e4f79e375e4bcfa2 (diff)
downloadlibgnunetchat-aa8a1d1faeee94b92c3bb9094cbaa1c1e63f1e38.tar.gz
libgnunetchat-aa8a1d1faeee94b92c3bb9094cbaa1c1e63f1e38.zip
Updated file uploading to allow setting user pointer before upload
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/gnunet_chat_lib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index cc08662..785d3ff 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V. 3 Copyright (C) 2021--2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -624,9 +624,9 @@ GNUNET_CHAT_context_send_text (struct GNUNET_CHAT_Context *context,
624 * @param[in] path Local file path 624 * @param[in] path Local file path
625 * @param[in] callback Callback for file uploading (optional) 625 * @param[in] callback Callback for file uploading (optional)
626 * @param[in,out] cls Closure for file uploading (optional) 626 * @param[in,out] cls Closure for file uploading (optional)
627 * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure 627 * @return The file handle on success, NULL on failure
628 */ 628 */
629int 629struct GNUNET_CHAT_File*
630GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context, 630GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context,
631 const char *path, 631 const char *path,
632 GNUNET_CHAT_FileUploadCallback callback, 632 GNUNET_CHAT_FileUploadCallback callback,