2007-08-09 15:42:01 +00:00
|
|
|
|
/*
|
|
|
|
|
* tvheadend, channel functions
|
|
|
|
|
* Copyright (C) 2007 Andreas <EFBFBD>man
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef CHANNELS_H
|
|
|
|
|
#define CHANNELS_H
|
|
|
|
|
|
|
|
|
|
void channels_load(void);
|
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
channel_t *channel_by_index(uint32_t id);
|
2007-08-09 15:42:01 +00:00
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
channel_t *channel_by_tag(uint32_t tag);
|
2007-11-20 07:58:09 +00:00
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
int id_by_channel(channel_t *ch);
|
2007-08-09 15:42:01 +00:00
|
|
|
|
|
|
|
|
|
int channel_get_channels(void);
|
|
|
|
|
|
|
|
|
|
void channel_unsubscribe(th_subscription_t *s);
|
|
|
|
|
|
2008-08-25 20:37:19 +00:00
|
|
|
|
channel_t *channel_find(const char *name, int create);
|
2007-12-06 15:08:34 +00:00
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
void channel_set_teletext_rundown(channel_t *ch, int v);
|
2008-01-28 20:40:35 +00:00
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
void channel_settings_write(channel_t *ch);
|
2008-04-17 21:16:33 +00:00
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
int channel_rename(channel_t *ch, const char *newname);
|
2008-05-03 05:13:31 +00:00
|
|
|
|
|
2008-05-03 06:00:07 +00:00
|
|
|
|
void channel_delete(channel_t *ch);
|
2008-05-03 05:13:31 +00:00
|
|
|
|
|
2008-05-03 06:38:42 +00:00
|
|
|
|
void channel_merge(channel_t *dst, channel_t *src);
|
|
|
|
|
|
2008-08-25 20:37:19 +00:00
|
|
|
|
void channel_set_icon(channel_t *ch, const char *icon);
|
|
|
|
|
|
2007-08-09 15:42:01 +00:00
|
|
|
|
#endif /* CHANNELS_H */
|