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

Public Member Functions

 TEECContext_Samsung (const InstanceHandle &instance)
 Creates a TEEC Context associated with given pp::Instance.
 
 TEECContext_Samsung (PP_Resource resource)
 
 TEECContext_Samsung (PassRef, PP_Resource resource)
 
 TEECContext_Samsung (const TEECContext_Samsung &other)
 
TEECContext_Samsungoperator= (const TEECContext_Samsung &other)
 
int32_t Open (const std::string &context_name, const CompletionCallbackWithOutput< PP_TEEC_Result > &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.
 

Member Function Documentation

int32_t pp::TEECContext_Samsung::Open ( const std::string &  context_name,
const CompletionCallbackWithOutput< PP_TEEC_Result > &  callback 
)

Initializes this TEEC Context, forming a connection between this Client Application and the TEE identified by the string identifier name.

Parameters
[in]nameA string that describes the TEE to connect to. If this parameter is an empty string the default TEE is selected
[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_NOACCESS - if application had no permission to access TEE Client Api.
  • PP_ERROR_FAILED - if context 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: