Pepper_42_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
samsung
ppb_extension_system_samsung.h
Go to the documentation of this file.
1
/* Copyright (c) 2015 Samsung Electronics. All rights reserved.
2
*/
3
4
/* From samsung/ppb_extension_system_samsung.idl,
5
* modified Thu Mar 5 09:49:54 2015.
6
*/
7
8
#ifndef PPAPI_C_SAMSUNG_PPB_EXTENSION_SYSTEM_SAMSUNG_H_
9
#define PPAPI_C_SAMSUNG_PPB_EXTENSION_SYSTEM_SAMSUNG_H_
10
11
#include "ppapi/c/pp_bool.h"
12
#include "ppapi/c/pp_instance.h"
13
#include "ppapi/c/pp_macros.h"
14
#include "ppapi/c/pp_stdint.h"
15
#include "ppapi/c/pp_var.h"
16
17
#define PPB_EXTENSIONSYSTEM_SAMSUNG_INTERFACE_0_1 \
18
"PPB_ExtensionSystem_Samsung;0.1"
19
#define PPB_EXTENSIONSYSTEM_SAMSUNG_INTERFACE \
20
PPB_EXTENSIONSYSTEM_SAMSUNG_INTERFACE_0_1
21
22
/**
23
* @file
24
* This file defines the <code>PPB_ExtensionSystem_Samsung</code> interface.
25
*/
26
27
28
/**
29
* @addtogroup Interfaces
30
* @{
31
*/
32
/**
33
* The PPB_ExtensionSystem_Samsung interface contains pointers to functions
34
* related to the extension system. The extension system can be different for
35
* each browser.
36
*/
37
struct
PPB_ExtensionSystem_Samsung_0_1
{
38
/**
39
* GetEmbedderName() provides string with embedder name (embedder of current
40
* extension). "Chrome", "TizenWRT", "ExtensionEngine" are one of possible
41
* values.
42
*
43
* @param[in] instance A <code>PP_Instance</code> identifying one instance
44
* of a module.
45
*
46
* @return A <code>PP_Var</code> with name of extension embedder.
47
*/
48
struct
PP_Var
(*
GetEmbedderName
)(
PP_Instance
instance);
49
/**
50
* GetCurrentExtensionInfo() gets dictionary with information for current
51
* extension. Keys and values of the dictionary are dependant on the
52
* embedder, and they can differ between embedders. If current embedder does
53
* not support extension system undefined value is returned.
54
*
55
* @param[in] instance A <code>PP_Instance</code> identifying one instance
56
* of a module.
57
*
58
* @return A <code>PP_Var</code> with information of current extension.
59
*/
60
struct
PP_Var
(*
GetCurrentExtensionInfo
)(
PP_Instance
instance);
61
/**
62
* GenericSyncCall() executes operation associated with the current
63
* extension. The operation is synchronous and blocks the caller until
64
* completes. See embedder documentation to know what operations are
65
* possible.
66
*
67
* @param[in] instance A <code>PP_Instance</code> identifying one instance
68
* of a module.
69
* @param[in] operation_name A string with name of operation to execute.
70
* @param[in] operation_argument A variable to be passed to embedder
71
* @param[out] result A variable containing result of execution (embedder
72
* defined).
73
*
74
* @return An int32_t containing an error code from <code>pp_errors.h</code>.
75
*/
76
int32_t (*
GenericSyncCall
)(
PP_Instance
instance,
77
struct
PP_Var
operation_name,
78
struct
PP_Var
operation_argument,
79
struct
PP_Var
* result);
80
};
81
82
typedef
struct
PPB_ExtensionSystem_Samsung_0_1
PPB_ExtensionSystem_Samsung
;
83
/**
84
* @}
85
*/
86
87
#endif
/* PPAPI_C_SAMSUNG_PPB_EXTENSION_SYSTEM_SAMSUNG_H_ */
88
PPB_ExtensionSystem_Samsung_0_1::GetCurrentExtensionInfo
struct PP_Var(* GetCurrentExtensionInfo)(PP_Instance instance)
Definition:
ppb_extension_system_samsung.h:60
PPB_ExtensionSystem_Samsung_0_1::GetEmbedderName
struct PP_Var(* GetEmbedderName)(PP_Instance instance)
Definition:
ppb_extension_system_samsung.h:48
PP_Var
Definition:
pp_var.h:166
PP_Instance
int32_t PP_Instance
Definition:
pp_instance.h:34
PPB_ExtensionSystem_Samsung_0_1
Definition:
ppb_extension_system_samsung.h:37
PPB_ExtensionSystem_Samsung_0_1::GenericSyncCall
int32_t(* GenericSyncCall)(PP_Instance instance, struct PP_Var operation_name, struct PP_Var operation_argument, struct PP_Var *result)
Definition:
ppb_extension_system_samsung.h:76
Generated on Wed Apr 20 2016 13:14:41 for Pepper_42_C_interfaces by
1.8.6