[svn r951] gmyth now is 0.8.1. Added methods epg_is_connected() and scheduler_is_connected() trunk
authormelunko
Thu Mar 13 16:29:38 2008 +0000 (2008-03-13)
branchtrunk
changeset 942c93bfa74c71f
parent 941 2394aa79ef69
child 943 17c89e61d1c3
[svn r951] gmyth now is 0.8.1. Added methods epg_is_connected() and scheduler_is_connected()
gmyth/configure.ac
gmyth/gmyth/gmyth_epg.c
gmyth/gmyth/gmyth_epg.h
gmyth/gmyth/gmyth_scheduler.c
gmyth/gmyth/gmyth_scheduler.h
     1.1 --- a/gmyth/configure.ac	Tue Mar 04 13:57:55 2008 +0000
     1.2 +++ b/gmyth/configure.ac	Thu Mar 13 16:29:38 2008 +0000
     1.3 @@ -1,4 +1,4 @@
     1.4 -AC_INIT(gmyth, 0.8.0)
     1.5 +AC_INIT(gmyth, 0.8.1)
     1.6  AC_PREREQ(2.52)
     1.7  AC_CONFIG_SRCDIR(configure.ac)
     1.8  AC_CANONICAL_BUILD
     2.1 --- a/gmyth/gmyth/gmyth_epg.c	Tue Mar 04 13:57:55 2008 +0000
     2.2 +++ b/gmyth/gmyth/gmyth_epg.c	Thu Mar 13 16:29:38 2008 +0000
     2.3 @@ -124,6 +124,14 @@
     2.4      return TRUE;
     2.5  }
     2.6  
     2.7 +gboolean
     2.8 +gmyth_epg_is_connected (GMythEPG *gmyth_epg)
     2.9 +{
    2.10 +    g_return_val_if_fail (gmyth_epg != NULL, FALSE);
    2.11 +
    2.12 +    return gmyth_query_is_alive (gmyth_epg->sqlquery);
    2.13 +}
    2.14 +
    2.15  /** Disconnects from the Mysql database in the backend.
    2.16   *
    2.17   * @param gmyth_epg the GMythEPG instance to be disconnected
     3.1 --- a/gmyth/gmyth/gmyth_epg.h	Tue Mar 04 13:57:55 2008 +0000
     3.2 +++ b/gmyth/gmyth/gmyth_epg.h	Thu Mar 13 16:29:38 2008 +0000
     3.3 @@ -43,14 +43,7 @@
     3.4  typedef struct _GMythEPGClass GMythEPGClass;
     3.5  
     3.6  struct _GMythEPGClass {
     3.7 -    GObjectClass    parent_class;
     3.8 -
     3.9 -    /*
    3.10 -     * callbacks 
    3.11 -     */
    3.12 -    /*
    3.13 -     * no one for now 
    3.14 -     */
    3.15 +    GObjectClass parent_class;
    3.16  };
    3.17  
    3.18  struct _GMythEPG {
    3.19 @@ -60,26 +53,28 @@
    3.20      GMythBackendInfo *backend_info;
    3.21  };
    3.22  
    3.23 -GType           gmyth_epg_get_type              (void) G_GNUC_CONST;;
    3.24 -GMythEPG*       gmyth_epg_new                   (void);
    3.25 -gboolean        gmyth_epg_connect               (GMythEPG           *gmyth_epg,
    3.26 -                                                 GMythBackendInfo   *backend_info);
    3.27 -gboolean        gmyth_epg_disconnect            (GMythEPG           *gmyth_epg);
    3.28 -gint            gmyth_epg_get_channel_list      (GMythEPG           *gmyth_epg,
    3.29 -                                                 GList              **glist_ptr);
    3.30 -gint            gmyth_epg_get_program_list      (GMythEPG           *gmyth_epg,
    3.31 -                                                 GList              **proglist,
    3.32 -                                                 gint               chanNum,
    3.33 -                                                 GTimeVal           *starttime,
    3.34 -                                                 GTimeVal           *endtime);
    3.35 +GType     gmyth_epg_get_type              (void) G_GNUC_CONST;;
    3.36 +GMythEPG* gmyth_epg_new                   (void);
    3.37 +gboolean  gmyth_epg_connect               (GMythEPG           *gmyth_epg,
    3.38 +                                           GMythBackendInfo   *backend_info);
    3.39 +gboolean  gmyth_epg_is_connected (GMythEPG *gmyth_epg);
    3.40 +	
    3.41 +gboolean  gmyth_epg_disconnect            (GMythEPG           *gmyth_epg);
    3.42 +gint      gmyth_epg_get_channel_list      (GMythEPG           *gmyth_epg,
    3.43 +                                           GList              **glist_ptr);
    3.44 +gint      gmyth_epg_get_program_list      (GMythEPG           *gmyth_epg,
    3.45 +                                           GList              **proglist,
    3.46 +                                           gint               chanNum,
    3.47 +                                           GTimeVal           *starttime,
    3.48 +                                           GTimeVal           *endtime);
    3.49  GMythChannelInfo*gmyth_epg_get_channel_info     (GMythEPG           *gmyth_epg,
    3.50                                                   gint               channel_id);
    3.51 -gboolean        gmyth_epg_channel_has_icon      (GMythEPG           *gmyth_epg,
    3.52 -                                                 GMythChannelInfo   *channel);
    3.53 -gboolean        gmyth_epg_channel_get_icon      (GMythEPG           *gmyth_epg,
    3.54 -                                                 GMythChannelInfo   *channel,
    3.55 -                                                 guint8             **data, 
    3.56 -                                                 guint              *length);
    3.57 +gboolean  gmyth_epg_channel_has_icon      (GMythEPG           *gmyth_epg,
    3.58 +                                           GMythChannelInfo   *channel);
    3.59 +gboolean  gmyth_epg_channel_get_icon      (GMythEPG           *gmyth_epg,
    3.60 +                                           GMythChannelInfo   *channel,
    3.61 +                                           guint8             **data, 
    3.62 +                                           guint              *length);
    3.63  
    3.64  G_END_DECLS
    3.65  #endif                          /* GMYTH_EPG_H_ */
     4.1 --- a/gmyth/gmyth/gmyth_scheduler.c	Tue Mar 04 13:57:55 2008 +0000
     4.2 +++ b/gmyth/gmyth/gmyth_scheduler.c	Thu Mar 13 16:29:38 2008 +0000
     4.3 @@ -210,6 +210,14 @@
     4.4      return TRUE;
     4.5  }
     4.6  
     4.7 +gboolean
     4.8 +gmyth_scheduler_is_connected (GMythScheduler *scheduler)
     4.9 +{
    4.10 +    g_return_val_if_fail (scheduler != NULL, FALSE);
    4.11 +
    4.12 +    return gmyth_query_is_alive (scheduler->msqlquery);
    4.13 +}
    4.14 +
    4.15  /** Disconnects from the Mysql database in the backend.
    4.16   *
    4.17   * @param scheduler the GMythScheduler instance to be disconnected
     5.1 --- a/gmyth/gmyth/gmyth_scheduler.h	Tue Mar 04 13:57:55 2008 +0000
     5.2 +++ b/gmyth/gmyth/gmyth_scheduler.h	Thu Mar 13 16:29:38 2008 +0000
     5.3 @@ -146,6 +146,7 @@
     5.4  gboolean            gmyth_scheduler_connect_with_timeout    (GMythScheduler * scheduler,
     5.5                                                               GMythBackendInfo * backend_info,
     5.6                                                               guint timeout);
     5.7 +gboolean            gmyth_scheduler_is_connected (GMythScheduler *scheduler);
     5.8  gboolean            gmyth_scheduler_disconnect              (GMythScheduler * scheduler);
     5.9  gint                gmyth_scheduler_get_schedule_list       (GMythScheduler * scheduler,
    5.10                                                               GList ** sched_list);