Pepper_47_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
samsung
ppb_device_control_samsung.h
Go to the documentation of this file.
1
/* Copyright (c) 2015 Samsung Electronics. All rights reserved.
2
*/
3
4
/* From samsung/ppb_device_control_samsung.idl,
5
* modified Tue Oct 25 13:39:42 2016.
6
*/
7
8
#ifndef PPAPI_C_SAMSUNG_PPB_DEVICE_CONTROL_SAMSUNG_H_
9
#define PPAPI_C_SAMSUNG_PPB_DEVICE_CONTROL_SAMSUNG_H_
10
11
#include "
ppapi/c/pp_bool.h
"
12
#include "
ppapi/c/pp_completion_callback.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
18
#define PPB_DEVICECONTROL_SAMSUNG_INTERFACE_0_1 "PPB_DeviceControl_Samsung;0.1"
19
#define PPB_DEVICECONTROL_SAMSUNG_INTERFACE \
20
PPB_DEVICECONTROL_SAMSUNG_INTERFACE_0_1
21
22
/**
23
* @file
24
* This file defines the <code>PPB_SourceControl_Samsung</code> interface.
25
*/
26
27
28
/**
29
* @addtogroup Interfaces
30
* @{
31
*/
32
/**
33
* Interface implemented by browser for to retriev service list
34
*
35
*/
36
struct
PPB_DeviceControl_Samsung_0_1
{
37
/**
38
* Create() creates an service list resource.
39
*
40
* @param[in] instance A <code>PP_Instance</code> identifying one instance
41
* of a module.
42
*
43
* @return A <code>PP_Resource</code> containing the service list resource if
44
* successful or 0 if resource cannot be created.
45
*/
46
PP_Resource
(*
Create
)(
PP_Instance
instance);
47
/**
48
* IsDeviceControl() checks if provided resource is source control.
49
*
50
* @param[in] resource A <code>PP_Resource</code> identifying resource that
51
* will be checked.
52
*
53
* @return <code>PP_TRUE<code> if resource identifying program schedule and
54
* <code>PP_FALSE<code> otherwise.
55
*/
56
PP_Bool
(*
IsDeviceControl
)(
PP_Resource
resource);
57
/**
58
* ChangeSource() changes current TV source to the specified one.
59
*
60
* @param[in] resource A <code>PP_Resource</code> identifying source control
61
* resource.
62
*
63
* @param[in] source ID A <code>uint32_t</code> identifying source to change
64
* to.
65
*
66
* @param[in] callback <code>PP_CompletionCallback</code> that will be called
67
* upon completion.
68
*
69
* @return <code>PP_Error<code> with error code.
70
*/
71
int32_t (*
ChangeSource
)(
PP_Resource
resource,
72
uint32_t sourceID,
73
struct
PP_CompletionCallback
callback);
74
};
75
76
typedef
struct
PPB_DeviceControl_Samsung_0_1
PPB_DeviceControl_Samsung
;
77
/**
78
* @}
79
*/
80
81
#endif
/* PPAPI_C_SAMSUNG_PPB_DEVICE_CONTROL_SAMSUNG_H_ */
82
pp_macros.h
PPB_DeviceControl_Samsung_0_1::IsDeviceControl
PP_Bool(* IsDeviceControl)(PP_Resource resource)
Definition:
ppb_device_control_samsung.h:56
PPB_DeviceControl_Samsung_0_1::Create
PP_Resource(* Create)(PP_Instance instance)
Definition:
ppb_device_control_samsung.h:46
pp_bool.h
pp_instance.h
PP_Resource
int32_t PP_Resource
Definition:
pp_resource.h:40
pp_completion_callback.h
pp_resource.h
PPB_DeviceControl_Samsung_0_1
Definition:
ppb_device_control_samsung.h:36
pp_stdint.h
PP_Instance
int32_t PP_Instance
Definition:
pp_instance.h:34
PP_Bool
PP_Bool
Definition:
pp_bool.h:30
PPB_DeviceControl_Samsung_0_1::ChangeSource
int32_t(* ChangeSource)(PP_Resource resource, uint32_t sourceID, struct PP_CompletionCallback callback)
Definition:
ppb_device_control_samsung.h:71
PP_CompletionCallback
Definition:
pp_completion_callback.h:139
Generated on Wed Apr 5 2017 11:09:17 for Pepper_47_C_interfaces by
1.8.6