Pepper_47_C_interfaces
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"
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  */
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  */
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  */
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 
77 /**
78  * @}
79  */
80 
81 #endif /* PPAPI_C_SAMSUNG_PPB_DEVICE_CONTROL_SAMSUNG_H_ */
82 
PP_Bool(* IsDeviceControl)(PP_Resource resource)
PP_Resource(* Create)(PP_Instance instance)
int32_t PP_Resource
Definition: pp_resource.h:40
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30
int32_t(* ChangeSource)(PP_Resource resource, uint32_t sourceID, struct PP_CompletionCallback callback)