From 9f09f682617f5501457a7f34bde0b26667b96d14 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Mon, 14 Mar 2022 16:04:13 -0400 Subject: These functions do not return positive values. --- binaryninjaapi.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index e11b7d9f..351c9797 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -5505,7 +5505,7 @@ namespace BinaryNinja { /*! Virtual method to synchronously perform a GET request to a url, overridden by a subclass \param url Full url to request - \return Zero or greater on successful request and HTTP 200 status + \return Zero on successful request, negative on failed request */ virtual int PerformRequest(const std::string& url) = 0; /*! @@ -5514,7 +5514,7 @@ namespace BinaryNinja { \param url Full url to request \param headers HTTP headers as keys/values \param response Structure into which the response status code and headers should be stored - \return Zero or greater on success + \return Zero on successful request, negative on failed request */ virtual int PerformCustomRequest(const std::string& method, const std::string& url, const std::unordered_map& headers, Response& response) = 0; @@ -5529,7 +5529,7 @@ namespace BinaryNinja { Send a GET request to a url, synchronously \param url Full url to request \param callbacks Structure with callback functions for output data - \return Zero or greater on successful request and HTTP 200 status + \return Zero on successful request, negative on failed request */ int PerformRequest(const std::string& url, BNDownloadInstanceOutputCallbacks* callbacks); /*! @@ -5539,7 +5539,7 @@ namespace BinaryNinja { \param headers HTTP headers as keys/values \param response Structure into which the response status code and headers are stored \param callbacks Structure with callback functions for input and output data - \return Zero or greater on success + \return Zero on successful request, negative on failed request */ int PerformCustomRequest(const std::string& method, const std::string& url, const std::unordered_map& headers, Response& response, -- cgit v1.3.1