Pepper_31_C_interfaces
|
#include <ppb_sef_client_samsung.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance, PPB_SefClient_Samsung_Callback callback, void *user_data) |
PP_Bool(* | IsSefClient )(PP_Resource resource) |
int32_t(* | Open )(PP_Resource sef_client, const char *name, const char *version, const char *credential, struct PP_CompletionCallback callback) |
int32_t(* | Execute )(PP_Resource sef_client, uint32_t params_count, const struct PP_Var params[], struct PP_Var *result, struct PP_CompletionCallback callback) |
Interface used to communicate with EMP (External Module Process).
Definition at line 55 of file ppb_sef_client_samsung.h.
PP_Resource(* PPB_SefClient_Samsung_0_1::Create)(PP_Instance instance, PPB_SefClient_Samsung_Callback callback, void *user_data) |
Create() creates Sef Client resource.
[in] | instance | A PP_Instance identifying one instance of a module. |
[in] | callback | A PPB_SefClient_Samsung_Callback callback function that browser calls when EMP sends event to Sef Client. User can pass a null callback. |
[in] | user_data | A pointer to user data used in the callback function. |
PP_Resource</code containing the Sef Client resource if successful or 0 if resource cannot be created.
Definition at line 69 of file ppb_sef_client_samsung.h.
int32_t(* PPB_SefClient_Samsung_0_1::Execute)(PP_Resource sef_client, uint32_t params_count, const struct PP_Var params[], struct PP_Var *result, struct PP_CompletionCallback callback) |
Execute() executes given command on opened EMP.
[in] | sef_client | A PP_Resource corresponding to a Sef Client resource. |
[in] | params_count | The number of parameters. |
[in] | params | An array of parameters. |
[in] | result | A pointer where will be stored result of executed command. |
[in] | callback | A PP_CompletionCallback to be called upon completion of Execute(). |
pp_errors.h
. Definition at line 117 of file ppb_sef_client_samsung.h.
PP_Bool(* PPB_SefClient_Samsung_0_1::IsSefClient)(PP_Resource resource) |
IsSefClient() determines if the provided resource if a Sef Client resource.
[in] | resource | A PP_Resource</code corresponding to a generic resource. |
A PP_Bool</code containing PP_TRUE</code if given resource is a Sef Client resource, otherwise PP_FALSE
.
Definition at line 82 of file ppb_sef_client_samsung.h.
int32_t(* PPB_SefClient_Samsung_0_1::Open)(PP_Resource sef_client, const char *name, const char *version, const char *credential, struct PP_CompletionCallback callback) |
Open() opens new EMP with given name, version and credential. It's possible to call Open() only once on given Sef Client resource.
[in] | sef_client | A PP_Resource corresponding to a Sef Client resource. |
[in] | name | The name of the EMP. |
[in] | version | The version of the EMP. |
[in] | credential | The credential of the EMP. |
[in] | callback | A PP_CompletionCallback to be called upon completion of Open(). |
pp_errors.h
. Definition at line 97 of file ppb_sef_client_samsung.h.