Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_device_ref_dev.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 dev/ppb_device_ref_dev.idl modified Thu Nov 3 08:52:14 2016. */
7 
8 #ifndef PPAPI_C_DEV_PPB_DEVICE_REF_DEV_H_
9 #define PPAPI_C_DEV_PPB_DEVICE_REF_DEV_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/pp_stdint.h"
15 #include "ppapi/c/pp_var.h"
16 
17 #define PPB_DEVICEREF_DEV_INTERFACE_0_1 "PPB_DeviceRef(Dev);0.1"
18 #define PPB_DEVICEREF_DEV_INTERFACE PPB_DEVICEREF_DEV_INTERFACE_0_1
19 
41 typedef void (*PP_MonitorDeviceChangeCallback)(void* user_data,
42  uint32_t device_count,
43  const PP_Resource devices[]);
55 typedef enum {
56  PP_DEVICETYPE_DEV_INVALID = 0,
57  PP_DEVICETYPE_DEV_AUDIOCAPTURE = 1,
58  PP_DEVICETYPE_DEV_VIDEOCAPTURE = 2,
59  PP_DEVICETYPE_DEV_REMOVABLESTORAGE = 101
61 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DeviceType_Dev, 4);
100  struct PP_Var (*GetName)(PP_Resource device_ref);
101 };
102 
108 #endif /* PPAPI_C_DEV_PPB_DEVICE_REF_DEV_H_ */
109 
struct PP_Var(* GetName)(PP_Resource device_ref)
Definition: ppb_device_ref_dev.h:100
PP_Bool(* IsDeviceRef)(PP_Resource resource)
Definition: ppb_device_ref_dev.h:80
PP_DeviceType_Dev(* GetType)(PP_Resource device_ref)
Definition: ppb_device_ref_dev.h:89
int32_t PP_Resource
Definition: pp_resource.h:40
Definition: pp_var.h:166
Definition: ppb_device_ref_dev.h:70
PP_Bool
Definition: pp_bool.h:30
PP_DeviceType_Dev
Definition: ppb_device_ref_dev.h:55
void(* PP_MonitorDeviceChangeCallback)(void *user_data, uint32_t device_count, const PP_Resource devices[])
Definition: ppb_device_ref_dev.h:41