2 * Copyright (C) 2016 Samsung Electronics. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
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.
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.
27 * @file ewk_media_subtitle_info_product.h
31 #ifndef ewk_media_subtitle_info_product_h
32 #define ewk_media_subtitle_info_product_h
42 typedef struct _Ewk_Media_Subtitle_Info Ewk_Media_Subtitle_Info;
47 * @param meia subtitle info's structure
49 * @return @c subtitle id
51 EXPORT_API int ewk_media_subtitle_info_id_get(Ewk_Media_Subtitle_Info *data);
54 * Get url of subtitle.
56 * @param meia subtitle info's structure
58 * @return @c subtitle url
60 EXPORT_API const char *ewk_media_subtitle_info_url_get(Ewk_Media_Subtitle_Info *data);
63 * Get srcLang of subtitle.
65 * @param meia subtitle info's structure
67 * @return @c subtitle srcLang
69 EXPORT_API const char *ewk_media_subtitle_info_lang_get(Ewk_Media_Subtitle_Info *data);
72 * Get label of subtitle.
74 * @param meia subtitle info's structure
76 * @return @c subtitle label
78 EXPORT_API const char *ewk_media_subtitle_info_label_get(Ewk_Media_Subtitle_Info *data);
80 typedef struct _Ewk_Media_Subtitle_Data Ewk_Media_Subtitle_Data;
85 * @param meia subtitle data's structure
87 * @return @c subtitle id
89 EXPORT_API int ewk_media_subtitle_data_id_get(Ewk_Media_Subtitle_Data *data);
92 * Get timestamp of subtitle.
94 * @param meia subtitle data's structure
96 * @return @c subtitle timestamp
98 EXPORT_API double ewk_media_subtitle_data_timestamp_get(Ewk_Media_Subtitle_Data *data);
101 * Get data size of subtitle.
103 * @param meia subtitle data's structure
105 * @return @c subtitle data size
107 EXPORT_API unsigned ewk_media_subtitle_data_size_get(Ewk_Media_Subtitle_Data *data);
110 * Get data of subtitle.
112 * @param meia subtitle data's structure
114 * @return @c subtitle data
116 EXPORT_API const void* ewk_media_subtitle_data_get(Ewk_Media_Subtitle_Data *data);
121 #endif // ewk_media_subtitle_info_product_h