4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef E_HTTP_REQUEST_H
19 #define E_HTTP_REQUEST_H
21 #define LIBSOUP_USE_UNSTABLE_REQUEST_API
23 #include <libsoup/soup.h>
24 #include <libsoup/soup-request.h>
26 /* Standard GObject macros */
27 #define E_TYPE_HTTP_REQUEST \
28 (e_http_request_get_type ())
29 #define E_HTTP_REQUEST(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST \
31 ((obj), E_TYPE_HTTP_REQUEST, EHTTPRequest))
32 #define E_HTTP_REQUEST_CLASS(cls) \
33 (G_TYPE_CHECK_CLASS_CAST \
34 ((cls), E_TYPE_HTTP_REQUEST, EHTTPRequestClass))
35 #define E_IS_HTTP_REQUEST(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE \
37 ((obj), E_TYPE_HTTP_REQUEST))
38 #define E_IS_HTTP_REQUEST_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_TYPE \
40 ((cls), E_TYPE_HTTP_REQUEST))
41 #define E_HTTP_REQUEST_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS \
43 ((obj), E_TYPE_HTTP_REQUEST, EHTTPRequestClass))
47 typedef struct _EHTTPRequest EHTTPRequest
;
48 typedef struct _EHTTPRequestClass EHTTPRequestClass
;
49 typedef struct _EHTTPRequestPrivate EHTTPRequestPrivate
;
51 struct _EHTTPRequest
{
53 EHTTPRequestPrivate
*priv
;
56 struct _EHTTPRequestClass
{
57 SoupRequestClass parent
;
60 GType
e_http_request_get_type (void) G_GNUC_CONST
;
64 #endif /* E_HTTP_REQUEST_H */