Creates a new TEEC Session
- Parameters
-
[in] | teec_context | A parent TEEC_Context for the TEEC session. |
int32_t pp::TEECSession_Samsung::InvokeCommand |
( |
uint32_t |
command_id, |
|
|
PP_TEEC_Operation * |
operation, |
|
|
const CompletionCallbackWithOutput< PP_TEEC_Result > & |
callback |
|
) |
| |
This function invokes a Command within the Trusted Application
- Parameters
-
[in] | command_id | The identifier of the Command within the Trusted Application to invoke. The meaning of each Command Identifier must be defined in the protocol exposed by the Trusted Application |
[in] | operation | A pointer to an Operation containing a set of Parameters to exchange with the Trusted Application, or NULL if no Parameters are to be exchanged or if the operation cannot be cancelled. |
[in] | callback | A CompletionCallback to be called upon completion. |
- Returns
- PP_OK on success, otherwise an error code from
pp_errors.h
. Meaning of errors:
PP_ERROR_RESOURCE_FAILED
- if session was created for an invalid PP_TEEC_Context.
PP_ERROR_BADARGUMENT
- if invalid PP_TEEC_Operation structure was passed.
PP_ERROR_FAILED
- if session was not opened or and error occured in underlaying library calls. Detailed error is returned in PP_TEEC_Result structure as an output of the completion callback.
int32_t pp::TEECSession_Samsung::Open |
( |
PP_TEEC_UUID * |
destination, |
|
|
uint32_t |
connection_method, |
|
|
uint32_t |
connection_data_size, |
|
|
const void * |
connection_data, |
|
|
PP_TEEC_Operation * |
operation, |
|
|
const CompletionCallbackWithOutput< PP_TEEC_Result > & |
callback |
|
) |
| |
Opens a session between the Client Application and the specified Trusted Application.
- Parameters
-
[in] | destination | A pointer to a structure containing the UUID of the destination Trusted Application. |
[in] | connection_method | The method of connection to use. |
[in] | connection_data_size | A size of passed connection data. |
[in] | connection_data | Any necessary data required to support the connection method chosen. |
[in] | operation | A pointer to an Operation containing a set of Parameters to exchange with the Trusted Application, or NULL if no Parameters are to be exchanged or if the operation cannot be cancelled. |
[in] | callback | A CompletionCallback to be called upon completion. |
- Returns
- PP_OK on success, otherwise an error code from
pp_errors.h
. Meaning of errors:
PP_ERROR_RESOURCE_FAILED
- if session was created for an invalid PP_TEEC_Context.
PP_ERROR_BADARGUMENT
- if invalid PP_TEEC_Operation structure was passed.
PP_ERROR_FAILED
- if session has been already opened or an error occured in underlaying library calls. Detailed error is returned in PP_TEEC_Result structure as an output of the completion callback.
The documentation for this class was generated from the following file: