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_utils.h
Go to the documentation of this file.
1
/*
2
.*
3
.* Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
4
.*
5
.* tv-service TV Service Proxy live
6
.*
7
.* Filename: tv_service_proxy_live.h
8
.* Description: TV Service proxy live client
9
.* Contact: Tan Yuehui <yuehui.tan@samsung.com>,Liu Kun <k2.liu@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_UTILS_H__
30
#define __TV_SERVICE_PROXY_UTILS_H__
31
32
/*===========================================================================================
33
| |
34
| INCLUDE FILES |
35
| |
36
========================================================================================== */
37
#include <glib.h>
38
#include "
tv_service_proxy_base.h
"
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
44
/*===========================================================================================
45
| |
46
| GLOBAL DEFINITIONS AND DECLARATIONS |
47
| |
48
========================================================================================== */
53
typedef
enum
54
{
55
TV_SERVICE_UTILS_EVENT_NONE
,
56
TV_SERVICE_UTILS_EVENT_GET_TIME
,
/*channel change*/
57
TV_SERVICE_UTILS_EVENT_MAX
58
}
TvServiceUtilsEvent
;
59
64
typedef
enum
65
{
66
UTILS_GET_TIME_SUCCESS
,
67
UTILS_GET_TIME_FAIL_TUNER_LOCK_FAIL
,
/*channel change*/
68
UTILS_GET_TIME_FAIL_GET_STT_FAIL
,
69
UTILS_GET_TIME_FAIL_NOT_AVAIABLE
,
70
UTILS_GET_TIME_MAX
71
}
UtilsGetTimeResultType
;
72
77
typedef
struct
78
{
79
UtilsGetTimeResultType
result
;
80
guint
system_time
;
81
guint16
daylight_saving
;
82
}
GetTimeResult
;
83
84
85
typedef
gpointer
TvServiceUtils
;
86
87
typedef
void (*
TvServiceUtilsCallback
) (
TvServiceUtilsEvent
event, gpointer data, gpointer user_data);
88
89
/*===========================================================================================
90
| |
91
| GLOBAL FUNCTION PROTOTYPES |
92
| |
93
========================================================================================== */
94
104
gint
tv_service_utils_create
();
105
116
gint
tv_service_utils_register_callback
(
TvServiceUtilsCallback
callback_func, gpointer user_data);
117
129
gint
tv_service_utils_get_time
(gint service_id);
130
140
gint
tv_service_utils_destroy
();
141
142
#ifdef __cplusplus
143
}
144
#endif
145
146
#endif
147
src
include
tv_service_proxy_utils.h
Generated on Fri Sep 15 2017 21:20:46 for tv-service by
1.8.2