tvheadend/epg.h
Andreas Öman fa329cec17 Major rework, as follows:
- Add automatic DVB mux scanning
- Rename "programme" to "event" (more consistent with DVB specs)
- Improve showtime client interface
- Add decent timers
- Fix UTF-8 conversion issues at various places
- Improve EPG (Join DVB and XMLTV to same lists)
2007-08-16 10:59:06 +00:00

51 lines
1.5 KiB
C

/*
* Electronic Program Guide - Common functions
* Copyright (C) 2007 Andreas Ö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 EPG_H
#define EPG_H
void epg_init(void);
void epg_lock(void);
void epg_unlock(void);
event_t *epg_event_find_by_time0(struct event_queue *q, time_t start);
event_t *epg_event_find_by_time(th_channel_t *ch, time_t start);
event_t *epg_event_find_by_tag(uint32_t id);
event_t *epg_event_get_current(th_channel_t *ch);
event_t *epg_event_build(struct event_queue *head, time_t start, int duration);
void epg_event_free(event_t *e);
void epg_event_set_title(event_t *e, const char *title);
void epg_event_set_desc(event_t *e, const char *desc);
void epg_update_event_by_id(th_channel_t *ch, uint16_t event_id,
time_t start, int duration, const char *title,
const char *desc);
void epg_transfer_events(th_channel_t *ch, struct event_queue *src,
const char *srcname);
#endif /* EPG_H */