1.1 --- a/gmyth/src/gmyth_tvchain.h Wed May 23 19:50:41 2007 +0100
1.2 +++ b/gmyth/src/gmyth_tvchain.h Thu Jun 14 18:19:52 2007 +0100
1.3 @@ -46,68 +46,68 @@
1.4
1.5
1.6 struct LiveTVChainEntry
1.7 - {
1.8 - GString *chanid;
1.9 +{
1.10 + GString *chanid;
1.11
1.12 - GTimeVal *starttime;
1.13 - GTimeVal *endtime;
1.14 + GTimeVal *starttime;
1.15 + GTimeVal *endtime;
1.16
1.17 - gboolean discontinuity; // if true, can't play smooth from last entry
1.18 - GString *hostprefix;
1.19 - GString *cardtype;
1.20 - GString *channum;
1.21 - GString *inputname;
1.22 - };
1.23 + gboolean discontinuity; // if true, can't play smooth from last entry
1.24 + GString *hostprefix;
1.25 + GString *cardtype;
1.26 + GString *channum;
1.27 + GString *inputname;
1.28 +};
1.29
1.30
1.31 struct _GMythTVChainClass
1.32 - {
1.33 - GObjectClass parent_class;
1.34 +{
1.35 + GObjectClass parent_class;
1.36
1.37 - /* callbacks */
1.38 - /* no one for now */
1.39 - };
1.40 + /* callbacks */
1.41 + /* no one for now */
1.42 +};
1.43
1.44 struct _GMythTVChain
1.45 - {
1.46 - GObject parent;
1.47 +{
1.48 + GObject parent;
1.49
1.50 - GString *tvchain_id;
1.51 - GList *tvchain_list;
1.52 + GString *tvchain_id;
1.53 + GList *tvchain_list;
1.54
1.55 - GTimeVal *cur_startts;
1.56 - GString *cur_chanid;
1.57 - gint cur_pos;
1.58 + GTimeVal *cur_startts;
1.59 + GString *cur_chanid;
1.60 + gint cur_pos;
1.61
1.62 - GMythBackendInfo *backend_info;
1.63 + GMythBackendInfo *backend_info;
1.64
1.65 - GMutex *mutex;
1.66 - };
1.67 + GMutex *mutex;
1.68 +};
1.69
1.70 -GType gmyth_tvchain_get_type ( void );
1.71 +GType gmyth_tvchain_get_type(void);
1.72
1.73 -GMythTVChain *gmyth_tvchain_new ( );
1.74 +GMythTVChain *gmyth_tvchain_new();
1.75
1.76 -gboolean gmyth_tvchain_initialize ( GMythTVChain * tvchain,
1.77 - GMythBackendInfo * backend_info );
1.78 -gboolean gmyth_tvchain_reload_all ( GMythTVChain * tvchain );
1.79 -GString *gmyth_tvchain_get_id ( GMythTVChain * tvchain );
1.80 -gint gmyth_tvchain_program_is_at ( GMythTVChain * tvchain,
1.81 - GString * chanid, GTimeVal * startts );
1.82 +gboolean gmyth_tvchain_initialize(GMythTVChain * tvchain,
1.83 + GMythBackendInfo * backend_info);
1.84 +gboolean gmyth_tvchain_reload_all(GMythTVChain * tvchain);
1.85 +GString *gmyth_tvchain_get_id(GMythTVChain * tvchain);
1.86 +gint gmyth_tvchain_program_is_at(GMythTVChain * tvchain,
1.87 + GString * chanid, GTimeVal * startts);
1.88
1.89 -struct LiveTVChainEntry *gmyth_tvchain_get_entry_at ( GMythTVChain * tvchain,
1.90 - gint index );
1.91 +struct LiveTVChainEntry *gmyth_tvchain_get_entry_at(GMythTVChain * tvchain,
1.92 + gint index);
1.93
1.94 -GMythProgramInfo *gmyth_tvchain_entry_to_program ( GMythTVChain * tvchain,
1.95 - struct LiveTVChainEntry
1.96 - *entry );
1.97 -GMythProgramInfo *gmyth_tvchain_get_program_at ( GMythTVChain * tvchain,
1.98 - gint index );
1.99 +GMythProgramInfo *gmyth_tvchain_entry_to_program(GMythTVChain * tvchain,
1.100 + struct LiveTVChainEntry
1.101 + *entry);
1.102 +GMythProgramInfo *gmyth_tvchain_get_program_at(GMythTVChain * tvchain,
1.103 + gint index);
1.104
1.105 -GList *gmyth_tvchain_get_program_info_from_channel ( GMythTVChain * tvchain,
1.106 - const gchar * channel );
1.107 +GList *gmyth_tvchain_get_program_info_from_channel(GMythTVChain * tvchain,
1.108 + const gchar * channel);
1.109
1.110 -GList *gmyth_tvchain_get_program_info_list ( GMythTVChain * tvchain );
1.111 +GList *gmyth_tvchain_get_program_info_list(GMythTVChain * tvchain);
1.112
1.113 G_END_DECLS
1.114 #endif /*LIVETVCHAIN_H_ */