612497c193da2a93cc8591aa2c35939697564ea4
[platform/framework/web/web-provider.git] / src / API / web_provider_plugin_info.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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  * @file    web_provider_plugin_info.h
18  * @author  Yunchan Cho (yunchan.cho@samsung.com)
19  */
20 #ifndef WEB_PROVIDER_PLUGIN_INFO_H
21 #define WEB_PROVIDER_PLUGIN_INFO_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #ifndef EXPORT_API
28 #define EXPORT_API __attribute__((visibility("default")))
29 #endif
30
31 struct _web_provider_plugin_info {
32     const char* type;
33     const char* path;
34     const char* service_boxid;
35     char** box_size;
36     int box_scrollable;
37     int box_size_count;
38 };
39 typedef _web_provider_plugin_info web_provider_plugin_info;
40
41 EXPORT_API web_provider_plugin_info** web_provider_plugin_get_installed_list(
42                 int* count);
43 EXPORT_API void web_provider_plugin_release_installed_list(
44                 web_provider_plugin_info** info_list,
45                 int count);
46 EXPORT_API int web_provider_plugin_get_box_scrollable(const char* plugin_type);
47 EXPORT_API int web_provider_plugin_check_supported_size(const char* plugin_type, char** size, int sizeCount);
48 #ifdef __cplusplus
49 }
50 #endif
51 #endif //WEB_PROVIDER_PROVIDER_INFO_H