branches/gmyth-0.1b/tests/http.c
author renatofilho
Thu Feb 01 18:42:01 2007 +0000 (2007-02-01)
branchtrunk
changeset 320 22a17127789e
permissions -rw-r--r--
[svn r322] created branch gmyth-0.1b
     1 #include <glib-object.h>
     2 #include "gmyth.h"
     3 #include <glib.h>
     4 
     5 int
     6 main (int args, const char **argv)
     7 {
     8     GMythBackendInfo *backend_info;
     9     g_type_init();
    10     //g_thread_init(NULL);
    11 
    12     backend_info = gmyth_backend_info_new ();
    13 
    14     gmyth_backend_info_set_hostname (backend_info, "localhost");
    15     gmyth_backend_info_set_port (backend_info, 6543);
    16     
    17     GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00");
    18     GTimeVal* end = gmyth_util_string_to_time_val("2007-01-01T00:00");
    19     GMythEpg epg;
    20     epg  = retrieve_epg(backend_info, 6544, start, end, 0, 2, "True");
    21 
    22 
    23     return 0;    
    24 }