9c2b088ee08ac543e4443b7a410c2ee106415f40
[platform/framework/web/crosswalk-tizen.git] /
1 /*
2  * Copyright (C) 2016 Samsung Electronics. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
14  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 /**
27 * @file    ewk_media_subtitle_info_product.h
28 * @brief   .
29 */
30
31 #ifndef ewk_media_subtitle_info_product_h
32 #define ewk_media_subtitle_info_product_h
33
34 #include <Eina.h>
35 #include <Evas.h>
36 #include <tizen.h>
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 typedef struct _Ewk_Media_Subtitle_Info Ewk_Media_Subtitle_Info;
43
44 /**
45 * Get id of subtitle.
46 *
47 * @param meia subtitle info's structure
48 *
49 * @return @c subtitle id
50 */
51 EXPORT_API int ewk_media_subtitle_info_id_get(Ewk_Media_Subtitle_Info *data);
52
53 /**
54 * Get url of subtitle.
55 *
56 * @param meia subtitle info's structure
57 *
58 * @return @c subtitle url
59 */
60 EXPORT_API const char *ewk_media_subtitle_info_url_get(Ewk_Media_Subtitle_Info *data);
61
62 /**
63 * Get srcLang of subtitle.
64 *
65 * @param meia subtitle info's structure
66 *
67 * @return @c subtitle srcLang
68 */
69 EXPORT_API const char *ewk_media_subtitle_info_lang_get(Ewk_Media_Subtitle_Info *data);
70
71 /**
72 * Get label of subtitle.
73 *
74 * @param meia subtitle info's structure
75 *
76 * @return @c subtitle label
77 */
78 EXPORT_API const char *ewk_media_subtitle_info_label_get(Ewk_Media_Subtitle_Info *data);
79
80 typedef struct _Ewk_Media_Subtitle_Data Ewk_Media_Subtitle_Data;
81
82 /**
83 * Get id of subtitle.
84 *
85 * @param meia subtitle data's structure
86 *
87 * @return @c subtitle id
88 */
89 EXPORT_API int ewk_media_subtitle_data_id_get(Ewk_Media_Subtitle_Data *data);
90
91 /**
92 * Get timestamp of subtitle.
93 *
94 * @param meia subtitle data's structure
95 *
96 * @return @c subtitle timestamp
97 */
98 EXPORT_API double ewk_media_subtitle_data_timestamp_get(Ewk_Media_Subtitle_Data *data);
99
100 /**
101 * Get data size of subtitle.
102 *
103 * @param meia subtitle data's structure
104 *
105 * @return @c subtitle data size
106 */
107 EXPORT_API unsigned ewk_media_subtitle_data_size_get(Ewk_Media_Subtitle_Data *data);
108
109 /**
110 * Get data of subtitle.
111 *
112 * @param meia subtitle data's structure
113 *
114 * @return @c subtitle data
115 */
116 EXPORT_API const void* ewk_media_subtitle_data_get(Ewk_Media_Subtitle_Data *data);
117
118 #ifdef __cplusplus
119 }
120 #endif
121 #endif // ewk_media_subtitle_info_product_h