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