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_channel_info.h
Go to the documentation of this file.
1
/*
2
.*
3
.* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
4
.*
5
.* libtv-service TV Service Library
6
.*
7
.* Filename: tv_service_proxy_channel_info.h
8
.* Description: tv service proxy interface
9
.* Contact: LiuKun <k2.liu@samsung.com>
10
.* Licensed under the Apache License, Version 2.0 (the "License");
11
.* you may not use this file except in compliance with the License.
12
.* You may obtain a copy of the License at
13
.*
14
.* http://www.apache.org/licenses/LICENSE-2.0
15
.*
16
.* Unless required by applicable law or agreed to in writing, software
17
.* distributed under the License is distributed on an "AS IS" BASIS,
18
.* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
.* See the License for the specific language governing permissions and
20
.* limitations under the License.
21
.*
22
.*/
23
28
#ifndef __TV_SERVICE_PROXY_CHANNEL_INFOR_H__
29
#define __TV_SERVICE_PROXY_CHANNEL_INFOR_H__
30
31
#include <glib.h>
32
#include <glib-object.h>
33
#include "
tv_service_proxy_base.h
"
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
39
#define PROGRAM_NAME_MAX_LEN 25
40
46
typedef
struct
47
{
48
guint
service_id
;
49
guint
frequency
;
50
guint
service_type
;
51
guint
channel_type
;
52
53
gulong
program_number
;
54
gulong
source_id
;
55
gulong
stream_id
;
56
gulong
pcr_id
;
57
gulong
major
;
58
gulong
minor
;
59
gulong
vpid
;
60
gulong
apid
;
61
gulong
pmt_pid
;
62
63
gboolean
hide_guide
;
64
gboolean
hidden
;
65
gboolean
locked
;
66
gboolean
remembered
;
67
gboolean
save_by_psi
;
68
gboolean
digital
;
69
gboolean
favorite
;
70
71
gchar program_name[
PROGRAM_NAME_MAX_LEN
];
72
73
TvServiceModulationTpye
modulation_type
;
74
TvServiceAntenna
antenna_type
;
75
TvServiceVideoType
video_type
;
76
TvServiceAudioType
audio_type
;
77
}
TvServiceChannel
;
78
83
typedef
enum
{
84
TV_SERVICE_CHANNEL_DATA_NONE
= 0,
85
TV_SERVICE_CHANNEL_DATA_SERVICE_ID
,
86
TV_SERVICE_CHANNEL_DATA_FREQUENCY
,
87
TV_SERVICE_CHANNEL_DATA_MAJOR_NUMBER
,
88
TV_SERVICE_CHANNEL_DATA_MINOR_NUMBER
,
89
TV_SERVICE_CHANNEL_DATA_PROGRAM_NAME
,
90
TV_SERVICE_CHANNEL_DATA_REMEMBERED
,
91
TV_SERVICE_CHANNEL_DATA_MAX
92
}
TvServiceChannelDataAttr
;
93
98
typedef
enum
{
99
CHANNEL_SORT_TYPE_MAJOR_MINOR_NUMBER
= 0x0,
100
CHANNEL_SORT_TYPE_SERVICE_ID
,
101
CHANNEL_SORT_TYPE_PROGRAM_NAME
,
102
CHANNEL_SORT_TYPE_MAX
103
}
TvServiceChannelSortType
;
104
109
typedef
enum
{
110
CHANNEL_FILTER_MATCH_NONE
= 0,
111
CHANNEL_FILTER_MATCH_EQUAL
,
112
CHANNEL_FILTER_MATCH_MORE
,
113
CHANNEL_FILTER_MATCH_LESS
,
114
CHANNEL_FILTER_MATCH_UNEQUAL
,
115
CHANNEL_FILTER_MATCH_CONTAIN
,
116
CHANNEL_FILTER_MATCH_MAX
117
}
TvServiceChannelFilterMatchType
;
118
119
#define CHANNEL_FILTER_STRING_MAX_LEN 100
120
125
typedef
struct
{
126
TvServiceChannelDataAttr
attribute
;
127
TvServiceChannelFilterMatchType
match_type
;
128
GValue *
value
;
129
}
TvServiceFilterNode
;
130
135
typedef
enum
136
{
137
TV_SERVICE_CHANNEL_EVENT_NONE
= 0,
138
TV_SERVICE_CHANNEL_EVENT_CHANNEL_CHANGE
,
139
TV_SERVICE_CHANNEL_EVENT_ADD
,
140
TV_SERVICE_CHANNEL_EVENT_DELETE
,
141
TV_SERVICE_CHANNEL_EVENT_ADD_FAVORITE
,
142
TV_SERVICE_CHANNEL_EVENT_DELETE_FAVORITE
,
143
TV_SERVICE_CHANNEL_EVENT_SCANED
,
144
TV_SERVICE_CHANNEL_EVENT_MAX
145
}
TvServiceChannelEvent
;
146
147
148
typedef
void (*
TvServiceChannelCallback
)(
TvServiceChannelEvent
event, gpointer data, gpointer user_data);
149
160
gint
tv_service_get_channel
(gint service_id,
TvServiceChannel
* channel);
161
173
gint
tv_service_get_channel_list
(
TvServiceChannelMode
mode,
TvServiceAntenna
type, GList ** channels);
174
188
gint
tv_service_get_channel_list_ex
(
TvServiceChannelMode
mode,
TvServiceAntenna
type, GList ** channels,
189
GList * filter,
TvServiceChannelSortType
sort_type);
190
199
gint
tv_service_free_channel_list
(GList * channels);
200
208
gint
tv_service_channel_info_create
();
209
217
gint
tv_service_channel_info_destroy
();
218
228
gint
tv_service_add_channel
(gint service_id);
229
239
gint
tv_service_delete_channel
(gint service_id);
240
250
gint
tv_service_add_favorite_channel
(gint service_id);
251
261
gint
tv_service_delete_favorite_channel
(gint service_id);
262
273
gint
tv_service_lock_channel
(gint service_id, gchar * password);
274
285
gint
tv_service_unlock_channel
(gint service_id, gchar * password);
286
297
gint
tv_service_get_channel_locked
(gint service_id, gboolean * lock);
298
310
gint
tv_service_channel_info_register_callback
(
TvServiceChannelCallback
callback_func,
TvServiceChannelEvent
event, gpointer user_data);
311
321
gint
tv_service_channel_info_unregister_callback
(
TvServiceChannelEvent
event);
322
323
#ifdef __cplusplus
324
}
325
#endif
326
327
#endif
328
src
include
tv_service_proxy_channel_info.h
Generated on Fri Sep 15 2017 21:20:46 for tv-service by
1.8.2