|
From: <me...@us...> - 2008-03-13 16:29:36
|
Revision: 951
http://gmyth.svn.sourceforge.net/gmyth/?rev=951&view=rev
Author: melunko
Date: 2008-03-13 09:29:38 -0700 (Thu, 13 Mar 2008)
Log Message:
-----------
gmyth now is 0.8.1. Added methods epg_is_connected() and scheduler_is_connected()
Modified Paths:
--------------
trunk/gmyth/configure.ac
trunk/gmyth/gmyth/gmyth_epg.c
trunk/gmyth/gmyth/gmyth_epg.h
trunk/gmyth/gmyth/gmyth_scheduler.c
trunk/gmyth/gmyth/gmyth_scheduler.h
Modified: trunk/gmyth/configure.ac
===================================================================
--- trunk/gmyth/configure.ac 2008-03-04 13:57:55 UTC (rev 950)
+++ trunk/gmyth/configure.ac 2008-03-13 16:29:38 UTC (rev 951)
@@ -1,4 +1,4 @@
-AC_INIT(gmyth, 0.8.0)
+AC_INIT(gmyth, 0.8.1)
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(configure.ac)
AC_CANONICAL_BUILD
Modified: trunk/gmyth/gmyth/gmyth_epg.c
===================================================================
--- trunk/gmyth/gmyth/gmyth_epg.c 2008-03-04 13:57:55 UTC (rev 950)
+++ trunk/gmyth/gmyth/gmyth_epg.c 2008-03-13 16:29:38 UTC (rev 951)
@@ -124,6 +124,14 @@
return TRUE;
}
+gboolean
+gmyth_epg_is_connected (GMythEPG *gmyth_epg)
+{
+ g_return_val_if_fail (gmyth_epg != NULL, FALSE);
+
+ return gmyth_query_is_alive (gmyth_epg->sqlquery);
+}
+
/** Disconnects from the Mysql database in the backend.
*
* @param gmyth_epg the GMythEPG instance to be disconnected
Modified: trunk/gmyth/gmyth/gmyth_epg.h
===================================================================
--- trunk/gmyth/gmyth/gmyth_epg.h 2008-03-04 13:57:55 UTC (rev 950)
+++ trunk/gmyth/gmyth/gmyth_epg.h 2008-03-13 16:29:38 UTC (rev 951)
@@ -43,14 +43,7 @@
typedef struct _GMythEPGClass GMythEPGClass;
struct _GMythEPGClass {
- GObjectClass parent_class;
-
- /*
- * callbacks
- */
- /*
- * no one for now
- */
+ GObjectClass parent_class;
};
struct _GMythEPG {
@@ -60,26 +53,28 @@
GMythBackendInfo *backend_info;
};
-GType gmyth_epg_get_type (void) G_GNUC_CONST;;
-GMythEPG* gmyth_epg_new (void);
-gboolean gmyth_epg_connect (GMythEPG *gmyth_epg,
- GMythBackendInfo *backend_info);
-gboolean gmyth_epg_disconnect (GMythEPG *gmyth_epg);
-gint gmyth_epg_get_channel_list (GMythEPG *gmyth_epg,
- GList **glist_ptr);
-gint gmyth_epg_get_program_list (GMythEPG *gmyth_epg,
- GList **proglist,
- gint chanNum,
- GTimeVal *starttime,
- GTimeVal *endtime);
+GType gmyth_epg_get_type (void) G_GNUC_CONST;;
+GMythEPG* gmyth_epg_new (void);
+gboolean gmyth_epg_connect (GMythEPG *gmyth_epg,
+ GMythBackendInfo *backend_info);
+gboolean gmyth_epg_is_connected (GMythEPG *gmyth_epg);
+
+gboolean gmyth_epg_disconnect (GMythEPG *gmyth_epg);
+gint gmyth_epg_get_channel_list (GMythEPG *gmyth_epg,
+ GList **glist_ptr);
+gint gmyth_epg_get_program_list (GMythEPG *gmyth_epg,
+ GList **proglist,
+ gint chanNum,
+ GTimeVal *starttime,
+ GTimeVal *endtime);
GMythChannelInfo*gmyth_epg_get_channel_info (GMythEPG *gmyth_epg,
gint channel_id);
-gboolean gmyth_epg_channel_has_icon (GMythEPG *gmyth_epg,
- GMythChannelInfo *channel);
-gboolean gmyth_epg_channel_get_icon (GMythEPG *gmyth_epg,
- GMythChannelInfo *channel,
- guint8 **data,
- guint *length);
+gboolean gmyth_epg_channel_has_icon (GMythEPG *gmyth_epg,
+ GMythChannelInfo *channel);
+gboolean gmyth_epg_channel_get_icon (GMythEPG *gmyth_epg,
+ GMythChannelInfo *channel,
+ guint8 **data,
+ guint *length);
G_END_DECLS
#endif /* GMYTH_EPG_H_ */
Modified: trunk/gmyth/gmyth/gmyth_scheduler.c
===================================================================
--- trunk/gmyth/gmyth/gmyth_scheduler.c 2008-03-04 13:57:55 UTC (rev 950)
+++ trunk/gmyth/gmyth/gmyth_scheduler.c 2008-03-13 16:29:38 UTC (rev 951)
@@ -210,6 +210,14 @@
return TRUE;
}
+gboolean
+gmyth_scheduler_is_connected (GMythScheduler *scheduler)
+{
+ g_return_val_if_fail (scheduler != NULL, FALSE);
+
+ return gmyth_query_is_alive (scheduler->msqlquery);
+}
+
/** Disconnects from the Mysql database in the backend.
*
* @param scheduler the GMythScheduler instance to be disconnected
Modified: trunk/gmyth/gmyth/gmyth_scheduler.h
===================================================================
--- trunk/gmyth/gmyth/gmyth_scheduler.h 2008-03-04 13:57:55 UTC (rev 950)
+++ trunk/gmyth/gmyth/gmyth_scheduler.h 2008-03-13 16:29:38 UTC (rev 951)
@@ -146,6 +146,7 @@
gboolean gmyth_scheduler_connect_with_timeout (GMythScheduler * scheduler,
GMythBackendInfo * backend_info,
guint timeout);
+gboolean gmyth_scheduler_is_connected (GMythScheduler *scheduler);
gboolean gmyth_scheduler_disconnect (GMythScheduler * scheduler);
gint gmyth_scheduler_get_schedule_list (GMythScheduler * scheduler,
GList ** sched_list);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|