|
tv-service
0.1.0
|
Go to the source code of this file.
Data Structures | |
| struct | TvServiceChannel |
| struct | TvServiceFilterNode |
Macros | |
| #define | PROGRAM_NAME_MAX_LEN 25 |
| #define | CHANNEL_FILTER_STRING_MAX_LEN 100 |
Typedefs | |
| typedef void(* | TvServiceChannelCallback )(TvServiceChannelEvent event, gpointer data, gpointer user_data) |
This API is not official tv-service API. It can always be changed without announcement.
| #define CHANNEL_FILTER_STRING_MAX_LEN 100 |
| #define PROGRAM_NAME_MAX_LEN 25 |
| typedef void(* TvServiceChannelCallback)(TvServiceChannelEvent event, gpointer data, gpointer user_data) |
An enumeration. Enumeration for channel data attribute used in channel list filter.
An enumeration. Enumeration for channel event type.
| gint tv_service_add_channel | ( | gint | service_id | ) |
tv_service_add_channel
This function add channel which has been deleted
| service_id | [in] service_id of channel |
| gint tv_service_add_favorite_channel | ( | gint | service_id | ) |
tv_service_add_favorite_channel
This function add favorite channel which has been deleted
| service_id | [in] service_id of channel |
| gint tv_service_channel_info_create | ( | ) |
tv_service_channel_info_create
This function initialize the tv_service_channel_info modules
| gint tv_service_channel_info_destroy | ( | ) |
tv_service_channel_info_destroy
This function release resource of tv_service_channel_info modules
| gint tv_service_channel_info_register_callback | ( | TvServiceChannelCallback | callback_func, |
| TvServiceChannelEvent | event, | ||
| gpointer | user_data | ||
| ) |
tv_service_channel_info_register_callback
This function register callback to TV Service
| callback_func | [in] callback handle, |
| event | [in] event type, |
| user_data | [in] user data, |
| gint tv_service_channel_info_unregister_callback | ( | TvServiceChannelEvent | event | ) |
tv_service_channel_info_unregister_callback
This function unregister callback event to TV Service
| event | [in] event type, |
| gint tv_service_delete_channel | ( | gint | service_id | ) |
tv_service_delete_channel
This function delete channel
| service_id | [in] service_id of channel |
| gint tv_service_delete_favorite_channel | ( | gint | service_id | ) |
tv_service_delete_favorite_channel
This function delete favorite channel
| service_id | [in] service_id of channel |
| gint tv_service_free_channel_list | ( | GList * | channels | ) |
tv_service_free_channel_list
This function free channel list data.
| channels | [in] channel list data |
| gint tv_service_get_channel | ( | gint | service_id, |
| TvServiceChannel * | channel | ||
| ) |
tv_service_get_channel
This function get service data according to the service id.
| service_id | [in] ID of the service. |
| channel | [out] TvServiceChannel memory to store the service data. |
| gint tv_service_get_channel_list | ( | TvServiceChannelMode | mode, |
| TvServiceAntenna | type, | ||
| GList ** | channels | ||
| ) |
tv_service_get_channel_list_ex
This function get channel list data according to antennna mode.
| mode | [in] the channel mode to be selected |
| type | [in] the antenna type to be selected |
| channels | [out] service data list |
| gint tv_service_get_channel_list_ex | ( | TvServiceChannelMode | mode, |
| TvServiceAntenna | type, | ||
| GList ** | channels, | ||
| GList * | filter, | ||
| TvServiceChannelSortType | sort_type | ||
| ) |
tv_service_get_channel_list_ex
This function get channel list data according to antennna mode.
| mode | [in] the channel mode to be selected |
| type | [in] the antenna type to be selected |
| channels | [out] service data list |
| filter | [in] the filter rule of channel list |
| sort_type | [in] the order attribute of channel list |
| gint tv_service_get_channel_locked | ( | gint | service_id, |
| gboolean * | lock | ||
| ) |
tv_service_get_channel_locked
This function get lock status of the channel
| service_id | [in] service_id of channel |
| lock | [in] lock status of channel |
| gint tv_service_lock_channel | ( | gint | service_id, |
| gchar * | password | ||
| ) |
tv_service_lock_channel
This function lock channel
| service_id | [in] service_id of channel |
| password | [in] password of channel lock |
| gint tv_service_unlock_channel | ( | gint | service_id, |
| gchar * | password | ||
| ) |
tv_service_unlock_channel
This function unlock channel
| service_id | [in] service_id of channel |
| password | [in] password of channel unlock |