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@418
|
14 |
gmyth_backend_info_set_hostname (backend_info, "192.168.3.165");
|
morphbr@329
|
15 |
gmyth_backend_info_set_port (backend_info, 6543);
|
morphbr@352
|
16 |
gmyth_backend_info_set_status_port (backend_info, 6544);
|
morphbr@329
|
17 |
|
morphbr@433
|
18 |
GTimeVal* start = gmyth_util_string_to_time_val("2007-03-19T17:00:00");
|
morphbr@433
|
19 |
//GTimeVal* end = gmyth_util_string_to_time_val("2007-03-10T00:00:00");
|
morphbr@417
|
20 |
|
morphbr@433
|
21 |
//GMythEpg epg;
|
morphbr@433
|
22 |
//epg = gmyth_http_retrieve_epg(backend_info, start, end, 1000, 10000, "1");
|
rosfran@401
|
23 |
|
morphbr@417
|
24 |
//if ( NULL == epg.channelList || g_slist_length( epg.channelList ) <= 0 )
|
morphbr@417
|
25 |
// printf( "Channel list is empty!!!" );
|
morphbr@386
|
26 |
|
morphbr@433
|
27 |
//GMythRecorded recorded;
|
morphbr@433
|
28 |
//recorded = gmyth_http_retrieve_recorded(backend_info);
|
morphbr@352
|
29 |
|
morphbr@433
|
30 |
//GMythRecorded_Program* program = recorded.programList->data;
|
morphbr@385
|
31 |
|
morphbr@433
|
32 |
//GSList* profiles = gmyth_http_retrieve_rec_profiles(backend_info, "Transcoders");
|
morphbr@385
|
33 |
|
morphbr@433
|
34 |
//GMythRecProfile* prof = profiles->data;
|
morphbr@385
|
35 |
|
morphbr@433
|
36 |
//gchar* sett = gmyth_http_retrieve_setting(backend_info, "JobQueueTranscodeCommand", "wakko");
|
morphbr@385
|
37 |
|
morphbr@433
|
38 |
//GMythRecProfile* profile = gmyth_recprofile_new();
|
morphbr@385
|
39 |
|
morphbr@433
|
40 |
//gmyth_recprofile_set_name(profile, "Teste");
|
morphbr@433
|
41 |
//gmyth_recprofile_set_group(profile, "Transcoders");
|
morphbr@433
|
42 |
//gmyth_recprofile_set_vcodec(profile, "MPEG-4");
|
morphbr@433
|
43 |
//gmyth_recprofile_set_acodec(profile, "MP3");
|
morphbr@385
|
44 |
|
morphbr@385
|
45 |
|
morphbr@433
|
46 |
//int teste = gmyth_http_create_rec_profile(backend_info, profile);
|
morphbr@385
|
47 |
|
morphbr@433
|
48 |
//printf("Hello: %d\n", teste);
|
morphbr@385
|
49 |
|
morphbr@433
|
50 |
//int teste2 = gmyth_http_del_rec_profile(backend_info, 56);
|
morphbr@433
|
51 |
|
morphbr@433
|
52 |
gint ret = gmyth_http_retrieve_job_status(backend_info, 1000, start);
|
morphbr@433
|
53 |
printf("Status: %d\n\n", ret);
|
morphbr@433
|
54 |
|
morphbr@329
|
55 |
|
morphbr@329
|
56 |
return 0;
|
morphbr@329
|
57 |
}
|