Pepper_56_C_interfaces
Pepper_56_C_interfaces
|
#include <ppb_teec_shared_memory_samsung.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Resource context, uint32_t flags) |
PP_Bool(* | IsTEECSharedMemory )(PP_Resource resource) |
int32_t(* | Register )(PP_Resource shared_mem, const void *buffer, uint32_t size, struct PP_TEEC_Result *result, struct PP_CompletionCallback callback) |
int32_t(* | Allocate )(PP_Resource shared_mem, uint32_t size, struct PP_TEEC_Result *result, struct PP_CompletionCallback callback) |
void *(* | Map )(PP_Resource shared_mem) |
This type denotes a Shared Memory block which has either been registered with the implementation or allocated by it.
int32_t(* PPB_TEECSharedMemory_Samsung_1_0::Allocate)(PP_Resource shared_mem, uint32_t size, struct PP_TEEC_Result *result, struct PP_CompletionCallback callback) |
This function allocates a new block of memory as a block of Shared Memory
PP_Resource(* PPB_TEECSharedMemory_Samsung_1_0::Create)(PP_Resource context, uint32_t flags) |
Creates a new TEEC shared memory resource.
[in] | teec_context | A PP_Resource identifying the parent TEEC_Context for the TEEC shared memory. |
[in] | flags | describing if memory can be used as input and/or output. See the PP_TEEC_MemoryType type for more details. |
PP_Resource
corresponding to a TEEC Shared Memory if successful or 0 otherwise. PP_Bool(* PPB_TEECSharedMemory_Samsung_1_0::IsTEECSharedMemory)(PP_Resource resource) |
Determines if the given resource is a TEEC shared memory.
[in] | resource | A PP_Resource identifying a resource. |
PP_TRUE
if the resource is a PPB_TEECSharedMemory_Samsung
, PP_FALSE
if the resource is invalid or some other type. void*(* PPB_TEECSharedMemory_Samsung_1_0::Map)(PP_Resource shared_mem) |
Maps this shared memory into the plugin address space and returns a pointer to the beginning of the data.
int32_t(* PPB_TEECSharedMemory_Samsung_1_0::Register)(PP_Resource shared_mem, const void *buffer, uint32_t size, struct PP_TEEC_Result *result, struct PP_CompletionCallback callback) |
This function registers a block of existing Client Application memory as a block of Shared Memory