tv-service
0.1.0
Main Page
APIs
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
tv_service_proxy_epg.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
4
*
5
* libtvs-scan TV Service Scan Library
6
*
7
* Filename: tv_service_proxy_epg.h
8
* Description: TV Service Proxy interfaces.
9
* Contact: Zhang Jian <jian9.zhangg@samsung.com>
10
*
11
* Licensed under the Apache License, Version 2.0 (the "License");
12
* you may not use this file except in compliance with the License.
13
* You may obtain a copy of the License at
14
*
15
* http://www.apache.org/licenses/LICENSE-2.0
16
*
17
* Unless required by applicable law or agreed to in writing, software
18
* distributed under the License is distributed on an "AS IS" BASIS,
19
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
* See the License for the specific language governing permissions and
21
* limitations under the License.
22
*
23
*/
24
29
#ifndef __TV_SERVICE_PROXY_EPG_H_
30
#define __TV_SERVICE_PROXY_EPG_H_
31
32
#include "
tv_service_proxy_base.h
"
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
#define TVS_EPG_UNDEFINED_TIME (0)
39
#define TVS_EPG_CURRENT_TIME (-1)
40
41
typedef
void
*
TvServiceEpg
;
42
47
typedef
enum
48
{
49
TVS_EPG_CREATE
= 0,
50
TVS_EPG_DESTROY
,
51
TVS_EPG_GET_CURRENT_PROGRAM
,
52
TVS_EPG_GET_PROGRAM_LIST
,
53
TVS_EPG_AUTO_DESTROY
,
54
TVS_EPG_DATA_UPDATED
55
}
tvs_epg_event_e
;
56
61
typedef
struct
{
62
guint
service_id
;
63
guint
event_id
;
64
guint
start_time
;
65
guint
etm_location
;
66
guint
length_in_seconds
;
67
guint8 title_text[256];
68
guint
current_time
;
69
guint8 extended_text[256];
70
}
TvServiceEpgEventData
;
71
72
typedef
void (*
TvServiceEpgCallback
) (
tvs_epg_event_e
type, gpointer epg_data, gpointer user_data);
73
86
gint
tv_service_epg_create
(TvServiceEpg * epg);
87
100
gint
tv_service_epg_destroy
(TvServiceEpg epg);
101
114
gint
tv_service_epg_register_callback
(TvServiceEpg epg,
TvServiceEpgCallback
callback_func, gpointer user_data);
115
131
gint
tv_service_epg_get_current_program
(TvServiceEpg epg, guint service_id,
TvServiceEpgCallback
callback_func, gpointer user_data);
132
150
gint
tv_service_epg_get_program_list
(TvServiceEpg epg, guint service_id, guint start_time, guint duration,
TvServiceEpgCallback
callback_func, gpointer user_data);
151
166
gint
tv_service_epg_get_cache_current_program
(TvServiceEpg epg, guint service_id,
TvServiceEpgEventData
* app_data);
167
168
#ifdef __cplusplus
169
}
170
#endif
171
172
#endif
/* __TV_SERVICE_SCAN_PROXY_H_ */
173
src
include
tv_service_proxy_epg.h
Generated on Fri Sep 15 2017 22:46:28 for tv-service by
1.8.2