diff -r 000000000000 -r 6d7b5baf170b branches/gmyth-0.1b/tests/http.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/branches/gmyth-0.1b/tests/http.c Wed Feb 14 22:24:39 2007 +0000 @@ -0,0 +1,24 @@ +#include +#include "gmyth.h" +#include + +int +main (int args, const char **argv) +{ + GMythBackendInfo *backend_info; + g_type_init(); + //g_thread_init(NULL); + + backend_info = gmyth_backend_info_new (); + + gmyth_backend_info_set_hostname (backend_info, "localhost"); + gmyth_backend_info_set_port (backend_info, 6543); + + GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00"); + GTimeVal* end = gmyth_util_string_to_time_val("2007-01-01T00:00"); + GMythEpg epg; + epg = retrieve_epg(backend_info, 6544, start, end, 0, 2, "True"); + + + return 0; +}