Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::TEECSession_Samsung Class Reference
Inheritance diagram for pp::TEECSession_Samsung:
pp::Resource

Public Member Functions

 TEECSession_Samsung (PP_Resource context)
 
 TEECSession_Samsung (PassRef, PP_Resource resource)
 
 TEECSession_Samsung (const TEECContext_Samsung &teecc_context)
 
 TEECSession_Samsung (const TEECSession_Samsung &other)
 
TEECSession_Samsungoperator= (const TEECSession_Samsung &other)
 
int32_t 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)
 
int32_t InvokeCommand (uint32_t command_id, PP_TEEC_Operation *operation, const CompletionCallbackWithOutput< PP_TEEC_Result > &callback)
 
int32_t RequestCancellation (const PP_TEEC_Operation *operation, const CompletionCallback &callback)
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor.
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor.
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Additional Inherited Members

- Protected Member Functions inherited from pp::Resource
 Resource (PP_Resource resource)
 
 Resource (PassRef, PP_Resource resource)
 
void PassRefFromConstructor (PP_Resource resource)
 
void Clear ()
 Sets this resource to null. This releases ownership of the resource.
 

Constructor & Destructor Documentation

pp::TEECSession_Samsung::TEECSession_Samsung ( const TEECContext_Samsung teecc_context)
explicit

Creates a new TEEC Session

Parameters
[in]teec_contextA parent TEEC_Context for the TEEC session.

Member Function Documentation

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_idThe 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]operationA 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]callbackA 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]destinationA pointer to a structure containing the UUID of the destination Trusted Application.
[in]connection_methodThe method of connection to use.
[in]connection_data_sizeA size of passed connection data.
[in]connection_dataAny necessary data required to support the connection method chosen.
[in]operationA 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]callbackA 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: