Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
|
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_Samsung & | operator= (const TEECContext_Samsung &other) |
int32_t | Open (const std::string &context_name, const CompletionCallbackWithOutput< PP_TEEC_Result > &callback) |
![]() | |
Resource () | |
The default constructor. | |
Resource (const Resource &other) | |
virtual | ~Resource () |
Destructor. | |
Resource & | operator= (const Resource &other) |
bool | is_null () const |
PP_Resource | pp_resource () const |
PP_Resource | detach () |
Additional Inherited Members | |
![]() | |
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. | |
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.
[in] | name | A string that describes the TEE to connect to. If this parameter is an empty string the default TEE is selected |
[in] | callback | A CompletionCallback to be called upon completion. |
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.