#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; }