Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_flash_drm.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 The Chromium Authors. 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 private/ppb_flash_drm.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_
10 
11 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/pp_var.h"
18 
19 #define PPB_FLASH_DRM_INTERFACE_1_0 "PPB_Flash_DRM;1.0"
20 #define PPB_FLASH_DRM_INTERFACE_1_1 "PPB_Flash_DRM;1.1"
21 #define PPB_FLASH_DRM_INTERFACE PPB_FLASH_DRM_INTERFACE_1_1
22 
47  int32_t (*GetDeviceID)(PP_Resource drm,
48  struct PP_Var* id,
49  struct PP_CompletionCallback callback);
57  PP_Bool (*GetHmonitor)(PP_Resource drm, int64_t* hmonitor);
63  int32_t (*GetVoucherFile)(PP_Resource drm,
64  PP_Resource* file_ref,
65  struct PP_CompletionCallback callback);
72  PP_Bool* is_external,
73  struct PP_CompletionCallback callback);
74 };
75 
76 typedef struct PPB_Flash_DRM_1_1 PPB_Flash_DRM;
77 
79  PP_Resource (*Create)(PP_Instance instance);
80  int32_t (*GetDeviceID)(PP_Resource drm,
81  struct PP_Var* id,
82  struct PP_CompletionCallback callback);
83  PP_Bool (*GetHmonitor)(PP_Resource drm, int64_t* hmonitor);
84  int32_t (*GetVoucherFile)(PP_Resource drm,
85  PP_Resource* file_ref,
86  struct PP_CompletionCallback callback);
87 };
92 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_DRM_H_ */
93 
PP_Bool(* GetHmonitor)(PP_Resource drm, int64_t *hmonitor)
Definition: ppb_flash_drm.h:57
int32_t PP_Resource
Definition: pp_resource.h:40
PP_Resource(* Create)(PP_Instance instance)
Definition: ppb_flash_drm.h:41
int32_t(* MonitorIsExternal)(PP_Resource drm, PP_Bool *is_external, struct PP_CompletionCallback callback)
Definition: ppb_flash_drm.h:71
int32_t(* GetVoucherFile)(PP_Resource drm, PP_Resource *file_ref, struct PP_CompletionCallback callback)
Definition: ppb_flash_drm.h:63
Definition: ppb_flash_drm.h:36
Definition: pp_var.h:166
int32_t(* GetDeviceID)(PP_Resource drm, struct PP_Var *id, struct PP_CompletionCallback callback)
Definition: ppb_flash_drm.h:47
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30
Definition: ppb_flash_drm.h:78
Definition: pp_completion_callback.h:139