gmyth/src/gmyth_tvchain.h
branchtrunk
changeset 701 2f28edb4d804
parent 698 9019388af980
child 750 312d6bc514f3
     1.1 --- a/gmyth/src/gmyth_tvchain.h	Wed May 23 16:11:29 2007 +0100
     1.2 +++ b/gmyth/src/gmyth_tvchain.h	Wed May 23 19:50:41 2007 +0100
     1.3 @@ -9,22 +9,21 @@
     1.4   * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
     1.5   * @author Hallyson Luiz de Morais Melo <hallyson.melo@indt.org.br>
     1.6   *
     1.7 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              *//*
     1.8 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * 
     1.9 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * This program is free software; you can redistribute it and/or modify
    1.10 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * it under the terms of the GNU Lesser General Public License as published by
    1.11 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * the Free Software Foundation; either version 2 of the License, or
    1.12 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * (at your option) any later version.
    1.13 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 *
    1.14 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * This program is distributed in the hope that it will be useful,
    1.15 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * GNU General Public License for more details.
    1.18 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 *
    1.19 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * You should have received a copy of the GNU Lesser General Public License
    1.20 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * along with this program; if not, write to the Free Software
    1.21 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.22 -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 */
    1.23 + * 
    1.24 + * This program is free software; you can redistribute it and/or modify
    1.25 + * it under the terms of the GNU Lesser General Public License as published by
    1.26 + * the Free Software Foundation; either version 2 of the License, or
    1.27 + * (at your option) any later version.
    1.28 + *
    1.29 + * This program is distributed in the hope that it will be useful,
    1.30 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.31 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.32 + * GNU General Public License for more details.
    1.33 + *
    1.34 + * You should have received a copy of the GNU Lesser General Public License
    1.35 + * along with this program; if not, write to the Free Software
    1.36 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.37 + */
    1.38  
    1.39  #ifndef LIVETVCHAIN_H_
    1.40  #define LIVETVCHAIN_H_
    1.41 @@ -47,67 +46,68 @@
    1.42  
    1.43  
    1.44  struct LiveTVChainEntry
    1.45 -{
    1.46 -    GString *chanid;
    1.47 +    {
    1.48 +        GString *chanid;
    1.49  
    1.50 -    GTimeVal *starttime;
    1.51 -    GTimeVal *endtime;
    1.52 +        GTimeVal *starttime;
    1.53 +        GTimeVal *endtime;
    1.54  
    1.55 -    gboolean discontinuity;     // if true, can't play smooth from last entry
    1.56 -    GString *hostprefix;
    1.57 -    GString *cardtype;
    1.58 -    GString *channum;
    1.59 -    GString *inputname;
    1.60 -};
    1.61 +        gboolean discontinuity; // if true, can't play smooth from last entry
    1.62 +        GString *hostprefix;
    1.63 +        GString *cardtype;
    1.64 +        GString *channum;
    1.65 +        GString *inputname;
    1.66 +    };
    1.67  
    1.68  
    1.69  struct _GMythTVChainClass
    1.70 -{
    1.71 -    GObjectClass parent_class;
    1.72 +    {
    1.73 +        GObjectClass parent_class;
    1.74  
    1.75 -    /* callbacks */
    1.76 -    /* no one for now */
    1.77 -};
    1.78 +        /* callbacks */
    1.79 +        /* no one for now */
    1.80 +    };
    1.81  
    1.82  struct _GMythTVChain
    1.83 -{
    1.84 -    GObject parent;
    1.85 +    {
    1.86 +        GObject parent;
    1.87  
    1.88 -    GString *tvchain_id;
    1.89 -    GList *tvchain_list;
    1.90 +        GString *tvchain_id;
    1.91 +        GList *tvchain_list;
    1.92  
    1.93 -    GTimeVal *cur_startts;
    1.94 -    GString *cur_chanid;
    1.95 -    gint cur_pos;
    1.96 +        GTimeVal *cur_startts;
    1.97 +        GString *cur_chanid;
    1.98 +        gint cur_pos;
    1.99  
   1.100 -    GMythBackendInfo *backend_info;
   1.101 +        GMythBackendInfo *backend_info;
   1.102  
   1.103 -    GMutex *mutex;
   1.104 -};
   1.105 +        GMutex *mutex;
   1.106 +    };
   1.107  
   1.108 -GType gmyth_tvchain_get_type (void);
   1.109 +GType gmyth_tvchain_get_type ( void );
   1.110  
   1.111 -GMythTVChain *gmyth_tvchain_new ();
   1.112 +GMythTVChain *gmyth_tvchain_new (  );
   1.113  
   1.114 -gboolean gmyth_tvchain_initialize (GMythTVChain * tvchain,
   1.115 -    GMythBackendInfo * backend_info);
   1.116 -gboolean gmyth_tvchain_reload_all (GMythTVChain * tvchain);
   1.117 -GString *gmyth_tvchain_get_id (GMythTVChain * tvchain);
   1.118 -gint gmyth_tvchain_program_is_at (GMythTVChain * tvchain,
   1.119 -    GString * chanid, GTimeVal * startts);
   1.120 +gboolean gmyth_tvchain_initialize ( GMythTVChain * tvchain,
   1.121 +                                    GMythBackendInfo * backend_info );
   1.122 +gboolean gmyth_tvchain_reload_all ( GMythTVChain * tvchain );
   1.123 +GString *gmyth_tvchain_get_id ( GMythTVChain * tvchain );
   1.124 +gint gmyth_tvchain_program_is_at ( GMythTVChain * tvchain,
   1.125 +                                   GString * chanid, GTimeVal * startts );
   1.126  
   1.127 -struct LiveTVChainEntry *gmyth_tvchain_get_entry_at (GMythTVChain * tvchain,
   1.128 -    gint index);
   1.129 +struct LiveTVChainEntry *gmyth_tvchain_get_entry_at ( GMythTVChain * tvchain,
   1.130 +                                                      gint index );
   1.131  
   1.132 -GMythProgramInfo *gmyth_tvchain_entry_to_program (GMythTVChain * tvchain,
   1.133 -    struct LiveTVChainEntry *entry);
   1.134 -GMythProgramInfo *gmyth_tvchain_get_program_at (GMythTVChain * tvchain,
   1.135 -    gint index);
   1.136 +GMythProgramInfo *gmyth_tvchain_entry_to_program ( GMythTVChain * tvchain,
   1.137 +                                                   struct LiveTVChainEntry
   1.138 +                                                   *entry );
   1.139 +GMythProgramInfo *gmyth_tvchain_get_program_at ( GMythTVChain * tvchain,
   1.140 +                                                 gint index );
   1.141  
   1.142 -GList *gmyth_tvchain_get_program_info_from_channel (GMythTVChain * tvchain,
   1.143 -    const gchar * channel);
   1.144 +GList *gmyth_tvchain_get_program_info_from_channel ( GMythTVChain * tvchain,
   1.145 +                                                     const gchar * channel );
   1.146  
   1.147 -GList *gmyth_tvchain_get_program_info_list (GMythTVChain * tvchain);
   1.148 +GList *gmyth_tvchain_get_program_info_list ( GMythTVChain * tvchain );
   1.149  
   1.150  G_END_DECLS
   1.151  #endif /*LIVETVCHAIN_H_ */