gmyth/tests/gmyth_test_http.c
author morphbr
Wed Feb 07 00:03:05 2007 +0000 (2007-02-07)
branchtrunk
changeset 329 818deb9ae65d
child 352 d803a518d7ca
permissions -rw-r--r--
[svn r331] - Updated gmyth_http (comments, etc..)
- Modified gmyth_http test file (test/http.c to test/gmyth_test_http.c)
- Created gmyth_vlc (interface for vlc - will be used for live tv and cool stuff)
- Created gmyth_vlc test file (test/gmyth_test_vlc.c)
morphbr@329
     1
#include <glib-object.h>
morphbr@329
     2
#include "gmyth.h"
morphbr@329
     3
#include <glib.h>
morphbr@329
     4
morphbr@329
     5
int
morphbr@329
     6
main (int args, const char **argv)
morphbr@329
     7
{
morphbr@329
     8
    GMythBackendInfo *backend_info;
morphbr@329
     9
    g_type_init();
morphbr@329
    10
    //g_thread_init(NULL);
morphbr@329
    11
morphbr@329
    12
    backend_info = gmyth_backend_info_new ();
morphbr@329
    13
morphbr@329
    14
    gmyth_backend_info_set_hostname (backend_info, "192.168.3.165");
morphbr@329
    15
    gmyth_backend_info_set_port (backend_info, 6543);
morphbr@329
    16
    
morphbr@329
    17
    GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00");
morphbr@329
    18
    GTimeVal* end = gmyth_util_string_to_time_val("2007-01-01T00:00");
morphbr@329
    19
    GMythEpg epg;
morphbr@329
    20
    epg  = retrieve_epg(backend_info, 6544, start, end, 0, 2, "True");
morphbr@329
    21
morphbr@329
    22
morphbr@329
    23
    return 0;    
morphbr@329
    24
}