[svn r269] Changed structure from gmyth_http to use *libcurl*.
4 * @file gmyth/gmyth_http.c
6 * @brief <p> GMythHttp class provides a wrapper to access
7 * data from the database using http+xml
9 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
10 * @author Artur Duque de Souza <@indt.org.br>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #ifndef __GMYTH_HTTP_H__
30 #define __GMYTH_HTTP_H__
32 #include <glib-object.h>
39 #include "gmyth_backendinfo.h"
41 #include <curl/curl.h>
42 #include <curl/types.h>
43 #include <curl/easy.h>
47 #define MYTH_PORT_STATUS 6544
49 #define TYPE_TEXT_XML 0
50 #define TYPE_FORM_URLENCODED 1
52 typedef struct _GMythPacket GMythPacket;
60 GString* gmyth_http_create_command(GString *command, ...);
61 GString *gmyth_http_request (GMythBackendInfo *backend_info, GString *command);
65 #endif /* __GMYTH_HTTP_H__ */