[svn r707] Fixed the wrong commentary indentation.
4 * @file gmyth/gmyth_http.h
6 * @brief <p> GMythHttp library provides a wrapper to access
7 * data from the database using http+xml
9 * Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
10 * @author Artur Duque de Souza <artur.souza@indt.org.br>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU Lesser General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef __GMYTH_HTTP_H__
29 #define __GMYTH_HTTP_H__
31 #include <glib-object.h>
38 #include <glib/gprintf.h>
40 #include "gmyth_backendinfo.h"
41 #include "gmyth_util.h"
42 #include "gmyth_recprofile.h"
44 #include <curl/curl.h>
45 #include <curl/types.h>
46 #include <curl/easy.h>
49 #define MYTH_PORT_STATUS 6544
50 #define JOB_UNKNOWN 0x0000
51 #define JOB_QUEUED 0x0001
52 #define JOB_PENDING 0x0002
53 #define JOB_STARTING 0x0003
54 #define JOB_RUNNING 0x0004
55 #define JOB_STOPPING 0x0005
56 #define JOB_PAUSED 0x0006
57 #define JOB_RETRY 0x0007
58 #define JOB_ERRORING 0x0008
59 #define JOB_ABORTING 0x0009
60 // JOB_DONE is a mask to indicate the job is done
61 // whatever the status is
62 #define JOB_DONE 0x0100
63 #define JOB_FINISHED 0x0110
64 #define JOB_ABORTED 0x0120
65 #define JOB_ERRORED 0x0130
66 #define JOB_CANCELLED 0x0140
67 typedef struct _GMythRecorded_Recording GMythRecorded_Recording;
68 typedef struct _GMythRecorded_Channel GMythRecorded_Channel;
69 typedef struct _GMythRecorded_Program GMythRecorded_Program;
70 typedef struct _GMythRecorded GMythRecorded;
71 typedef struct _GMythProgram GMythProgram;
72 typedef struct _GMythChannel GMythChannel;
73 typedef struct _GMythEpg GMythEpg;
74 typedef struct _MemoryStruct MemoryStruct;
118 struct _GMythRecorded_Recording
130 GTimeVal *recStartTs;
135 struct _GMythRecorded_Channel
148 struct _GMythRecorded_Program
158 GTimeVal *airdate; //?
159 GTimeVal *lastModified;
165 GMythRecorded_Channel channel;
166 GMythRecorded_Recording recording;
169 struct _GMythRecorded
179 gint gmyth_http_retrieve_job_status ( GMythBackendInfo * backend_info,
180 gint chanid, GTimeVal * start );
182 gchar *gmyth_http_retrieve_setting ( GMythBackendInfo * backend_info,
183 gchar * key, gchar * hostname );
185 GMythEpg gmyth_http_retrieve_epg ( GMythBackendInfo * backend_info,
186 GTimeVal * StartTime, GTimeVal * EndTime,
187 gint StartChanId, gint NumOfChannels,
190 GMythRecorded gmyth_http_retrieve_recorded ( GMythBackendInfo * backend_info );
192 GSList *gmyth_http_retrieve_rec_profiles ( GMythBackendInfo * backend_info,
195 gint gmyth_http_create_rec_profile ( GMythBackendInfo * backend_info,
196 GMythRecProfile * profile );
198 gint gmyth_http_del_rec_profile ( GMythBackendInfo * backend_info, gint id );
200 MemoryStruct gmyth_http_request ( GMythBackendInfo * backend_info,
204 #endif /* __GMYTH_HTTP_H__ */