Pepper_47_C_interfaces
ppb_system_info.h
Go to the documentation of this file.
1 /**
2  * This file defines the <code>PPB_SystemInfo</code> interface.
3  */
4 
5 /* From ppb_system_info.idl modified Wed Oct 26 09:29:12 2016. */
6 
7 #ifndef PPAPI_C_PPB_SYSTEM_INFO_H_
8 #define PPAPI_C_PPB_SYSTEM_INFO_H_
9 
10 #include "ppapi/c/pp_bool.h"
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/pp_var.h"
15 
16 #define PPB_SYSTEMINFO_INTERFACE_1_0 "PPB_SystemInfo;1.0"
17 #define PPB_SYSTEMINFO_INTERFACE PPB_SYSTEMINFO_INTERFACE_1_0
18 
19 /**
20  * @file
21  */
22 
23 
24 /**
25  * @addtogroup Interfaces
26  * @{
27  */
28 /**
29  * Interface implemented by browser for
30  * providing informations about system resources.
31  */
33  /**
34  * GetFreeMemorySize() provides informations about available free memory.
35  *
36  * @param[in] instance A <code>PP_Instance</code> identifying one instance
37  * of a module.
38  *
39  * @return A <code>uint32_t</code with amount of free memory i bytes.
40  */
41  uint32_t (*GetFreeMemorySize)(PP_Instance instance);
42  /**
43  * GetCoresNumber() provides information about number
44  * of available processor cores.
45  *
46  * @param[in] instance A <code>PP_Instance</code> identifying one instance
47  * of a module.
48  *
49  * @return A <code>uint32_t</code with number of processor cores.
50  */
51  uint32_t (*GetCoresNumber)(PP_Instance instance);
52  /**
53  * GetBrowserVersion() provides information about browser version.
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 browser version.
59  */
60  struct PP_Var (*GetBrowserVersion)(PP_Instance instance);
61 };
62 
64 /**
65  * @}
66  */
67 
68 #endif /* PPAPI_C_PPB_SYSTEM_INFO_H_ */
69 
uint32_t(* GetFreeMemorySize)(PP_Instance instance)
uint32_t(* GetCoresNumber)(PP_Instance instance)
Definition: pp_var.h:166
int32_t PP_Instance
Definition: pp_instance.h:34
struct PP_Var(* GetBrowserVersion)(PP_Instance instance)