gmyth/gmyth/gmyth_scheduler.c
branchtrunk
changeset 942 c93bfa74c71f
parent 939 1418e08cee7a
child 944 ec1d5934d8e8
     1.1 --- a/gmyth/gmyth/gmyth_scheduler.c	Mon Mar 03 17:38:32 2008 +0000
     1.2 +++ b/gmyth/gmyth/gmyth_scheduler.c	Thu Mar 13 16:29:38 2008 +0000
     1.3 @@ -210,6 +210,14 @@
     1.4      return TRUE;
     1.5  }
     1.6  
     1.7 +gboolean
     1.8 +gmyth_scheduler_is_connected (GMythScheduler *scheduler)
     1.9 +{
    1.10 +    g_return_val_if_fail (scheduler != NULL, FALSE);
    1.11 +
    1.12 +    return gmyth_query_is_alive (scheduler->msqlquery);
    1.13 +}
    1.14 +
    1.15  /** Disconnects from the Mysql database in the backend.
    1.16   *
    1.17   * @param scheduler the GMythScheduler instance to be disconnected