Open Enclave
oe_result_t oe_call_host_by_address ( void(*)(void *, oe_enclave_t *)  func,
void *  args 
)

Perform a high-level host function call (OCALL).

Call the host function whose address is given by the func parameter, which is the address of a function defined in the host with the following prototoype.

OE_OCALL void (*)(void* args);

The meaning of the args parameter is defined by the implementer of the function and may be null.

Note that the return value of this function only indicates the success of the call and not of the underlying function. The OCALL implementation must define its own error reporting scheme based on args.

Parameters
funcThe address of the host function that will be called.
argsThe arguments to be passed to the host function.
Returns
OE_OK the call was successful.
OE_INVALID_PARAMETER a parameter is invalid.
OE_FAILURE the call failed.