Pepper_31_C_interfaces
Public Attributes | List of all members
PPB_SefClient_Samsung_0_1 Struct Reference

#include <ppb_sef_client_samsung.h>

Collaboration diagram for PPB_SefClient_Samsung_0_1:
Collaboration graph

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)
 

Detailed Description

Interface used to communicate with EMP (External Module Process).

Definition at line 55 of file ppb_sef_client_samsung.h.

Member Data Documentation

PP_Resource(* PPB_SefClient_Samsung_0_1::Create)(PP_Instance instance, PPB_SefClient_Samsung_Callback callback, void *user_data)

Create() creates Sef Client resource.

Parameters
[in]instanceA PP_Instance identifying one instance of a module.
[in]callbackA PPB_SefClient_Samsung_Callback callback function that browser calls when EMP sends event to Sef Client. User can pass a null callback.
[in]user_dataA pointer to user data used in the callback function.
Returns
A 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.

Parameters
[in]sef_clientA PP_Resource corresponding to a Sef Client resource.
[in]params_countThe number of parameters.
[in]paramsAn array of parameters.
[in]resultA pointer where will be stored result of executed command.
[in]callbackA PP_CompletionCallback to be called upon completion of Execute().
Returns
An int32_t containing an error code from 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.

Parameters
[in]resourceA PP_Resource</code corresponding to a generic resource.
Returns
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.

Parameters
[in]sef_clientA PP_Resource corresponding to a Sef Client resource.
[in]nameThe name of the EMP.
[in]versionThe version of the EMP.
[in]credentialThe credential of the EMP.
[in]callbackA PP_CompletionCallback to be called upon completion of Open().
Returns
An int32_t containing an error code from pp_errors.h.

Definition at line 97 of file ppb_sef_client_samsung.h.


The documentation for this struct was generated from the following file: