tv-service  0.1.0
 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 {
55  /* add new type here */
56  /* TVS_SCAN_CABLE_QUICK_DIGITAL*/
59 
64 typedef enum
65 {
69 
74 typedef enum
75 {
82 
89 
98 
106 
111 typedef struct
112 {
113  union
114  {
115  long l[2];
116  short s[4];
117  char c[8];
118  } data;
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