QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vlc_epg.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_epg.h: Electronic Program Guide
3  *****************************************************************************
4  * Copyright (C) 2007 VLC authors and VideoLAN
5  * $Id: c0fd0f559ac3bb7ed6201889dcda998ebff3a413 $
6  *
7  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #ifndef VLC_EPG_H
25 #define VLC_EPG_H 1
26 
32 typedef struct
33 {
34  int64_t i_start; /* Interpreted as a value return by time() */
35  int i_duration; /* Duration of the event in second */
36 
37  char *psz_name;
38  char *psz_short_description;
39  char *psz_description;
40 
41  uint8_t i_rating; /* Parental control, set to 0 when undefined */
43 
44 typedef struct
45 {
46  char *psz_name;
47  vlc_epg_event_t *p_current; /* Can be null or should be the same than one of pp_event entry */
48 
49  int i_event;
50  vlc_epg_event_t **pp_event;
51 } vlc_epg_t;
52 
58 VLC_API void vlc_epg_Init(vlc_epg_t *p_epg, const char *psz_name);
59 
63 VLC_API void vlc_epg_Clean(vlc_epg_t *p_epg);
64 
70 VLC_API void vlc_epg_AddEvent(vlc_epg_t *p_epg, int64_t i_start, int i_duration, const char *psz_name, const char *psz_short_description, const char *psz_description, uint8_t i_rating );
71 
77 VLC_API vlc_epg_t * vlc_epg_New(const char *psz_name) VLC_USED;
78 
82 VLC_API void vlc_epg_Delete(vlc_epg_t *p_epg);
83 
87 VLC_API void vlc_epg_SetCurrent(vlc_epg_t *p_epg, int64_t i_start);
88 
94 VLC_API void vlc_epg_Merge(vlc_epg_t *p_dst, const vlc_epg_t *p_src);
95 
96 #endif
97 
Definition: vlc_epg.h:32
VLC_API void vlc_epg_AddEvent(vlc_epg_t *p_epg, int64_t i_start, int i_duration, const char *psz_name, const char *psz_short_description, const char *psz_description, uint8_t i_rating)
VLC_API void vlc_epg_Clean(vlc_epg_t *p_epg)
VLC_API void vlc_epg_Init(vlc_epg_t *p_epg, const char *psz_name)
VLC_API void vlc_epg_SetCurrent(vlc_epg_t *p_epg, int64_t i_start)
Definition: vlc_epg.h:44
VLC_API vlc_epg_t * vlc_epg_New(const char *psz_name) VLC_USED
VLC_API void vlc_epg_Merge(vlc_epg_t *p_dst, const vlc_epg_t *p_src)
VLC_API void vlc_epg_Delete(vlc_epg_t *p_epg)