1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/branches/gmyth-0.1b/tests/http.c Tue Feb 06 00:33:35 2007 +0000
1.3 @@ -0,0 +1,24 @@
1.4 +#include <glib-object.h>
1.5 +#include "gmyth.h"
1.6 +#include <glib.h>
1.7 +
1.8 +int
1.9 +main (int args, const char **argv)
1.10 +{
1.11 + GMythBackendInfo *backend_info;
1.12 + g_type_init();
1.13 + //g_thread_init(NULL);
1.14 +
1.15 + backend_info = gmyth_backend_info_new ();
1.16 +
1.17 + gmyth_backend_info_set_hostname (backend_info, "localhost");
1.18 + gmyth_backend_info_set_port (backend_info, 6543);
1.19 +
1.20 + GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00");
1.21 + GTimeVal* end = gmyth_util_string_to_time_val("2007-01-01T00:00");
1.22 + GMythEpg epg;
1.23 + epg = retrieve_epg(backend_info, 6544, start, end, 0, 2, "True");
1.24 +
1.25 +
1.26 + return 0;
1.27 +}