From 61f05f9b89be4c3b7ec2ad2038597a8e689ed346 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 8 Dec 2020 21:28:10 -0500 Subject: Chunked uploads and cancelling uploads --- binaryninjaapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index d1467d0f..5c3e0cde 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -4939,7 +4939,7 @@ __attribute__ ((format (printf, 1, 2))) int PerformRequest(const std::string& url, BNDownloadInstanceOutputCallbacks* callbacks); int PerformCustomRequest(const std::string& method, const std::string& url, const std::unordered_map& headers, Response& response, BNDownloadInstanceInputOutputCallbacks* callbacks); - uint64_t ReadDataCallback(uint8_t* data, uint64_t len); + int64_t ReadDataCallback(uint8_t* data, uint64_t len); uint64_t WriteDataCallback(uint8_t* data, uint64_t len); bool NotifyProgressCallback(uint64_t progress, uint64_t total); void SetError(const std::string& error); -- cgit v1.3.1