From d93609aa560709d44342fe54645172736731b0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 12 Dec 2017 12:57:35 +0100 Subject: [PATCH] EVM-C: Extend documentation of evm_call_fn --- include/evm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/evm.h b/include/evm.h index c7d3be5..674cd41 100644 --- a/include/evm.h +++ b/include/evm.h @@ -125,7 +125,7 @@ struct evm_result; ///< Forward declaration. /// @param result The execution result which resource are to be released. The /// result itself it not modified by this function, but becomes /// invalid and user should discard it as well. -typedef void (*evm_release_result_fn)(struct evm_result const* result); +typedef void (*evm_release_result_fn)(const struct evm_result* result); /// The EVM code execution result. struct evm_result { @@ -322,7 +322,9 @@ typedef void (*evm_log_fn)(struct evm_context* context, /// Pointer to the callback function supporting EVM calls. /// -/// @param[out] result Call result. +/// @param[out] result The result of the call. The result object is not +/// initialized by the EVM, the Client MUST correctly +/// initialize all expected fields of the structure. /// @param context The pointer to the Host execution context. /// @see ::evm_context. /// @param msg Call parameters.