Pepper_42_C_interfaces
ppb_service_list_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2015 Samsung Electronics. All rights reserved.
2  */
3 
4 /* From samsung/ppb_service_list_samsung.idl,
5  * modified Fri Aug 14 12:49:41 2015.
6  */
7 
8 #ifndef PPAPI_C_SAMSUNG_PPB_SERVICE_LIST_SAMSUNG_H_
9 #define PPAPI_C_SAMSUNG_PPB_SERVICE_LIST_SAMSUNG_H_
10 
11 #include "ppapi/c/pp_array_output.h"
12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h"
18 #include "ppapi/c/pp_var.h"
19 #include "ppapi/c/samsung/pp_search_criteria_samsung.h"
20 
21 #define PPB_SERVICELIST_SAMSUNG_INTERFACE_0_2 "PPB_ServiceList_Samsung;0.2"
22 #define PPB_SERVICELIST_SAMSUNG_INTERFACE PPB_SERVICELIST_SAMSUNG_INTERFACE_0_2
23 
24 /**
25  * @file
26  * This file defines the <code>PPB_ServiceList_Samsung</code> interface.
27  */
28 
29 
30 /**
31  * @addtogroup Typedefs
32  * @{
33  */
34 /**
35  * Defines the callback type to receive notifacation about changes
36  * in program schedule table.
37  *
38  * @param[inout] user_data The opaque pointer that the caller passed into
39  * <code>MonitorScheduleChanges()</code>.
40  */
41 typedef void (*PPB_ProgramSchedule_Monitoring_Callback)(void* user_data);
42 /**
43  * @}
44  */
45 
46 /**
47  * @addtogroup Interfaces
48  * @{
49  */
50 /**
51  * Interface implemented by browser for to retriev service list.
52  *
53  */
55  /**
56  * Create() creates an service list resource.
57  *
58  * @param[in] instance A <code>PP_Instance</code> identifying one instance
59  * of a module.
60  *
61  * @return A <code>PP_Resource</code> containing the service list resource if
62  * successful or 0 if resource cannot be created.
63  */
65  /**
66  * isServiceList() checks if provided resource is service list.
67  *
68  * @param[in] resource A <code>PP_Resource</code> identifying
69  * resource that may be checked.
70  *
71  * @return <code>PP_TRUE<code> if resource identifying service
72  * list and <code>PP_FALSE<code> otherwise.
73  */
75  /**
76  * GetServiceList() provides list <code>PP_Resource</code> identifying
77  * available Program Schedule Resources for available services.
78  *
79  * @param[in] resource A <code>PP_Resource</code> identifying service
80  * list resource.
81  *
82  * @param[in] output <code>PP_ArrayOutput</code> in which
83  * <code>PP_Resource</code> will be returned.
84  *
85  * @param[in] callback <code>PP_CompletionCallback</code> that will
86  * be run when output will be ready.
87  *
88  * @return <code>PP_OK<code> if succeed. Error from PP_ERROR otherwise.
89  */
90  int32_t (*GetServiceList)(PP_Resource resource,
91  struct PP_ArrayOutput output,
92  struct PP_CompletionCallback callback);
94  PP_Resource resource,
96  void* user_data);
97  /**
98  * FindService() finds first <code>PP_Resource</code> identifying first
99  * Program Schedule Resource fitting criteria.
100  *
101  * @param[in] resource A <code>PP_Resource</code> identifying service
102  * list resource.
103  *
104  * @param[in] criteria <code>PP_SearchCriteria</code> for service search.
105  *
106  * @param[inout] output <code>PP_Resource</code> identifying first
107  * Program Schedule Resource fitting criteria.
108  *
109  * @param[in] callback <code>PP_CompletionCallback</code> that will
110  * be run when output will be ready.
111  *
112  * @return <code>PP_OK<code> if succeed. Error from PP_ERROR otherwise.
113  */
114  int32_t (*FindService)(PP_Resource resource,
115  const struct PP_SearchCriteria* criteria,
116  PP_Resource* output,
117  struct PP_CompletionCallback callback);
118  /**
119  * ChangeService() changes current service to one identified by provided
120  * serviceID.
121  *
122  * @param[in] resource A <code>PP_Resource</code> identifying service
123  * list resource.
124  *
125  * @param[in] serviceID <code>uint32_t</code> for service identification.
126  *
127  * @param[in] callback <code>PP_CompletionCallback</code> that will
128  * be run when output will be ready.
129  *
130  * @return <code>PP_OK<code> if succeed. Error from PP_ERROR otherwise.
131  */
132  int32_t (*ChangeService)(PP_Resource resource,
133  uint64_t serviceID,
134  struct PP_CompletionCallback callback);
135 };
136 
138 /**
139  * @}
140  */
141 
142 #endif /* PPAPI_C_SAMSUNG_PPB_SERVICE_LIST_SAMSUNG_H_ */
143 
PP_Resource(* Create)(PP_Instance instance)
int32_t PP_Resource
Definition: pp_resource.h:40
void(* PPB_ProgramSchedule_Monitoring_Callback)(void *user_data)
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool(* IsServiceList)(PP_Resource resource)
PP_Bool
Definition: pp_bool.h:30
int32_t(* FindService)(PP_Resource resource, const struct PP_SearchCriteria *criteria, PP_Resource *output, struct PP_CompletionCallback callback)
int32_t(* ChangeService)(PP_Resource resource, uint64_t serviceID, struct PP_CompletionCallback callback)
int32_t(* GetServiceList)(PP_Resource resource, struct PP_ArrayOutput output, struct PP_CompletionCallback callback)
int32_t(* MonitorScheduleChanges)(PP_Resource resource, PPB_ProgramSchedule_Monitoring_Callback callback, void *user_data)