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_scan.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_scan_proxy.h
8
* Description: TV Service Scan interfaces.
9
* Contact: Tang Daoguang <dguang.tang@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_SCAN_PROXY_H_
30
#define __TV_SERVICE_SCAN_PROXY_H_
31
32
#include "
tv_service_proxy_base.h
"
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
typedef
void
*
TvServiceScan
;
39
44
typedef
enum
45
{
46
TVS_SCAN_AIR_ANALOG
= 0,
47
TVS_SCAN_AIR_DIGITAL
,
48
TVS_SCAN_AIR_ANALOG_DIGITAL
,
49
TVS_SCAN_CABLE_ANALOG
,
50
TVS_SCAN_CABLE_DIGITAL
,
51
TVS_SCAN_CABLE_ANALOG_DIGITAL
,
52
TVS_SCAN_ALL_ANALOG
,
53
TVS_SCAN_ALL_DIGITAL
,
54
TVS_SCAN_ALL_ANALOG_DIGITAL
,
55
/* add new type here */
56
/* TVS_SCAN_CABLE_QUICK_DIGITAL*/
57
TVS_SCAN_TYPE_MAX
58
}
TvServiceScanType
;
59
64
typedef
enum
65
{
66
TVS_SCAN_SEARCH_FINISH_STOPPED
= 0,
67
TVS_SCAN_SEARCH_FINISH_COMPLETE
68
}
TvServiceScanSearchFinishType
;
69
74
typedef
enum
75
{
81
TVS_SCAN_EVENT_SEARCH_BEGIN
= 0,
82
88
TVS_SCAN_EVENT_SEARCH_CHANNEL
,
89
97
TVS_SCAN_EVENT_CHANNEL_FOUND
,
98
104
TVS_SCAN_EVENT_SEARCH_FINISH
105
}
TvServiceScanEvent
;
106
111
typedef
struct
112
{
113
union
114
{
115
long
l[2];
116
short
s[4];
117
char
c[8];
118
} data;
119
}
TvServiceScanEventData
;
120
121
122
typedef
void (*
TvServiceScanCallback
) (
TvServiceScanEvent
type,
TvServiceScanEventData
* data, gpointer user_data);
123
124
138
gint
tv_service_scan_create
(TvServiceScan * scan,
TvServiceScanType
type);
139
152
gint
tv_service_scan_destroy
(TvServiceScan scan);
153
154
167
gint
tv_service_scan_start
(TvServiceScan scan);
168
169
182
gint
tv_service_scan_stop
(TvServiceScan scan);
183
184
197
gint
tv_service_scan_pause
(TvServiceScan scan);
198
211
gint
tv_service_scan_resume
(TvServiceScan scan);
212
227
gint
tv_service_scan_register_callback
(TvServiceScan scan,
TvServiceScanCallback
callback_func, gpointer user_data);
228
229
#ifdef __cplusplus
230
}
231
#endif
232
233
#endif
/* __TV_SERVICE_SCAN_PROXY_H_*/
234
src
include
tv_service_proxy_scan.h
Generated on Fri Sep 15 2017 21:20:46 for tv-service by
1.8.2