Add LCOV remarkers to increase line coverage rate
[platform/core/api/maps-service.git] / src / plugin / empty_module.cpp
1 /* Copyright (c) 2010-2014 Samsung Electronics Co., Ltd. All rights reserved.
2  *
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "discovery.h"
18 #include "empty_module.h"
19
20
21 /* Set of empty functions */
22
23 /* Plugin dedicated functions */
24 //LCOV_EXCL_START
25 int maps_plugin_init_empty(maps_plugin_h *plugin)
26 {
27         return 0;
28 }
29
30 int maps_plugin_init_module_empty(maps_plugin_h *plugin, const char *module)
31 {
32         return 0;
33 }
34
35 int maps_plugin_shutdown_empty(maps_plugin_h plugin)
36 {
37         return 0;
38 }
39
40 int maps_plugin_get_info_empty(maps_plugin_info_h *info)
41 {
42         return 0;
43 }
44
45 int maps_plugin_request_user_consent_empty(const char *provider,
46                                                                 maps_service_request_user_consent_cb callback,
47                                                                 void *user_data)
48 {
49         return 0;
50 }
51
52 /* Maps Provider access key, preference and capabilities */
53 int maps_plugin_set_provider_key_empty(const char *provider_key)
54 {
55         return 0;
56 }
57
58 int maps_plugin_get_provider_key_empty(char **provider_key)
59 {
60         return 0;
61 }
62
63 int maps_plugin_set_preference_empty(maps_preference_h preference)
64 {
65         return 0;
66 }
67
68 int maps_plugin_get_preference_empty(maps_preference_h *preference)
69 {
70         return 0;
71 }
72
73 int maps_plugin_is_service_supported_empty(maps_service_e service, bool *supported)
74 {
75         return 0;
76 }
77
78 int maps_plugin_is_data_supported_empty(maps_service_data_e data, bool *supported)
79 {
80         return 0;
81 }
82
83 /* Geocode */
84 int maps_plugin_geocode_empty(const char *address,
85                                                                 const maps_preference_h preference,
86                                                                 const maps_service_geocode_cb callback,
87                                                                 void *user_data, int *request_id)
88 {
89         return 0;
90 }
91
92 int maps_plugin_geocode_inside_area_empty(const char *address,
93                                                                 const maps_area_h bounds,
94                                                                 const maps_preference_h preference,
95                                                                 maps_service_geocode_cb callback,
96                                                                 void *user_data, int *request_id)
97 {
98         return 0;
99 }
100
101 int maps_plugin_geocode_by_structured_address_empty(const maps_address_h address,
102                                                                 const maps_preference_h preference,
103                                                                 maps_service_geocode_cb callback,
104                                                                 void *user_data,
105                                                                 int *request_id)
106 {
107         return 0;
108 }
109
110 int maps_plugin_reverse_geocode_empty(double latitude, double longitude,
111                                                                 const maps_preference_h preference,
112                                                                 maps_service_reverse_geocode_cb
113                                                                 callback, void *user_data,
114                                                                 int *request_id)
115 {
116         return 0;
117 }
118
119 int maps_plugin_multi_reverse_geocode_empty(const maps_coordinates_list_h maps_list,
120                                                                 const maps_preference_h preference,
121                                                                 maps_service_multi_reverse_geocode_cb callback,
122                                                                 void *user_data, int *request_id)
123 {
124         return 0;
125 }
126
127 /* Place */
128 int maps_plugin_search_place_empty(const maps_coordinates_h position,
129                                                                 int distance,
130                                                                 const maps_place_filter_h filter,
131                                                                 maps_preference_h preference,
132                                                                 maps_service_search_place_cb callback,
133                                                                 void *user_data, int *request_id)
134 {
135         return 0;
136 }
137
138 int maps_plugin_search_place_by_area_empty(const maps_area_h boundary,
139                                                                 const maps_place_filter_h filter,
140                                                                 maps_preference_h preference,
141                                                                 maps_service_search_place_cb callback,
142                                                                 void *user_data,
143                                                                 int *request_id)
144 {
145         return 0;
146 }
147
148 int maps_plugin_search_place_by_address_empty(const char *address,
149                                                                 const maps_area_h boundary,
150                                                                 const maps_place_filter_h filter,
151                                                                 maps_preference_h preference,
152                                                                 maps_service_search_place_cb callback,
153                                                                 void *user_data,
154                                                                 int *request_id)
155 {
156         return 0;
157 }
158
159 int maps_plugin_search_place_list_empty(const maps_area_h boundary,
160                                                                 const maps_place_filter_h filter,
161                                                                 maps_preference_h preference,
162                                                                 maps_service_search_place_list_cb callback,
163                                                                 void *user_data, int *request_id)
164 {
165         return 0;
166 }
167
168 int maps_plugin_get_place_details_empty(const char *url,
169                                                                 maps_service_get_place_details_cb callback,
170                                                                 void *user_data, int *request_id)
171 {
172         return 0;
173 }
174
175 /* Route */
176 int maps_plugin_search_route_empty(const maps_coordinates_h origin,
177                                                                 const maps_coordinates_h destination,
178                                                                 maps_preference_h preference,
179                                                                 maps_service_search_route_cb callback,
180                                                                 void *user_data, int *request_id)
181 {
182         return 0;
183 }
184
185 int maps_plugin_search_route_waypoints_empty(const maps_coordinates_h *waypoint_list,
186                                                                 int waypoint_num,
187                                                                 maps_preference_h preference,
188                                                                 maps_service_search_route_cb callback,
189                                                                 void *user_data, int *request_id)
190 {
191         return 0;
192 }
193
194 /* Cancel Request */
195 int maps_plugin_cancel_request_empty(int request_id)
196 {
197         return 0;
198 }
199
200 /* Mapping */
201 int maps_plugin_create_map_view_empty(maps_view_h view, maps_plugin_map_view_ready_cb callback)
202 {
203         return 0;
204 }
205
206 int maps_plugin_destroy_map_view_empty(maps_view_h view)
207 {
208         return 0;
209 }
210
211 int maps_plugin_render_map_empty(maps_view_h view,
212                                                                 const maps_coordinates_h coordinates,
213                                                                 double zoom_factor,
214                                                                 double rotation_angle)
215 {
216         return 0;
217 }
218
219 int maps_plugin_move_center_empty(maps_view_h view, const int delta_x, const int delta_y)
220 {
221         return 0;
222 }
223
224 int maps_plugin_set_scalebar_empty(maps_view_h view, bool enable)
225 {
226         return 0;
227 }
228
229 int maps_plugin_get_scalebar_empty(maps_view_h view, bool *enabled)
230 {
231         return 0;
232 }
233
234 int maps_plugin_on_object_empty(maps_view_h view,
235                                                                 const maps_view_object_h object,
236                                                                 maps_view_object_operation_e operation)
237 {
238         return 0;
239 }
240
241 int maps_plugin_screen_to_geography_empty(maps_view_h view, const int x, const int y,
242                                                                 maps_coordinates_h *coordinates)
243 {
244         return 0;
245 }
246
247 int maps_plugin_geography_to_screen_empty(maps_view_h view,
248                                                                 const maps_coordinates_h coordinates, int* x, int* y)
249 {
250         return 0;
251 }
252
253 int maps_plugin_get_min_zoom_level_empty(maps_view_h view, int *min_zoom_level)
254 {
255         return 0;
256 }
257
258 int maps_plugin_get_max_zoom_level_empty(maps_view_h view, int *max_zoom_level)
259 {
260         return 0;
261 }
262
263 int maps_plugin_get_center_empty(maps_view_h view, maps_coordinates_h *coordinates)
264 {
265         return 0;
266 }
267
268 int maps_plugin_capture_snapshot_empty(maps_view_h view, void **data, int *width, int *height,
269                                                                 maps_view_colorspace_type_e *cs)
270 {
271         return 0;
272 }
273
274 int maps_plugin_get_view_scale_factor_empty(maps_view_h view, double *scale_factor)
275 {
276         return 0;
277 }
278
279 int maps_plugin_set_view_scale_factor_empty(maps_view_h view, double scale_factor)
280 {
281         return 0;
282 }
283
284
285 /* Interface of a plugin with all empty functions */
286 plugin::interface_s empty_interface = {
287         /* Plugin dedicated functions */
288         maps_plugin_init_empty,
289         maps_plugin_shutdown_empty,
290         maps_plugin_get_info_empty,
291         maps_plugin_init_module_empty,
292         maps_plugin_request_user_consent_empty,
293
294         maps_plugin_set_provider_key_empty,
295         maps_plugin_get_provider_key_empty,
296         maps_plugin_set_preference_empty,
297         maps_plugin_get_preference_empty,
298         maps_plugin_is_service_supported_empty,
299         maps_plugin_is_data_supported_empty,
300
301         /* Geocode */
302         maps_plugin_geocode_empty,
303         maps_plugin_geocode_inside_area_empty,
304         maps_plugin_geocode_by_structured_address_empty,
305         maps_plugin_reverse_geocode_empty,
306         maps_plugin_multi_reverse_geocode_empty,
307
308         /* Place */
309         maps_plugin_search_place_empty,
310         maps_plugin_search_place_by_area_empty,
311         maps_plugin_search_place_by_address_empty,
312         maps_plugin_search_place_list_empty,
313         maps_plugin_get_place_details_empty,
314
315         /* Route */
316         maps_plugin_search_route_empty,
317         maps_plugin_search_route_waypoints_empty,
318
319         /* Cancel Request */
320         maps_plugin_cancel_request_empty,
321
322         /* Mapping */
323         maps_plugin_create_map_view_empty,
324         maps_plugin_destroy_map_view_empty,
325         maps_plugin_render_map_empty,
326         maps_plugin_move_center_empty,
327         maps_plugin_set_scalebar_empty,
328         maps_plugin_get_scalebar_empty,
329         maps_plugin_on_object_empty,
330         maps_plugin_screen_to_geography_empty,
331         maps_plugin_geography_to_screen_empty,
332         maps_plugin_get_min_zoom_level_empty,
333         maps_plugin_get_max_zoom_level_empty,
334         maps_plugin_get_center_empty,
335         maps_plugin_capture_snapshot_empty,
336         maps_plugin_get_view_scale_factor_empty,
337         maps_plugin_set_view_scale_factor_empty,
338 };
339
340
341 plugin::interface_s &plugin::get_empty_interface()
342 {
343         return empty_interface;
344 }
345
346 plugin::interface_s *plugin::get_empty_interface_ptr()
347 {
348         return &empty_interface;
349 }
350 //LCOV_EXCL_STOP