ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / modules / http-method.h
1 /* http-method.h - HTTP access method for the GNOME Virtual File System.
2
3    Copyright (C) 1999 Free Software Foundation
4
5    The Gnome Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Library General Public License as
7    published by the Free Software Foundation; either version 2 of the
8    License, or (at your option) any later version.
9
10    The Gnome Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14
15    You should have received a copy of the GNU Library General Public
16    License along with the Gnome Library; see the file COPYING.LIB.  If not,
17    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18    Boston, MA 02111-1307, USA.
19
20    Author: Ettore Perazzoli <ettore@gnu.org>
21 */
22
23 #ifndef HTTP_METHOD_H
24 #define HTTP_METHOD_H
25
26 #include <glib/gtypes.h>
27
28 typedef gint64 utime_t;
29
30 utime_t http_util_get_utime (void);
31
32 gchar * http_util_base64 (const gchar *text);
33
34 #undef DEBUG_HTTP_ENABLE
35
36 #ifdef DEBUG_HTTP_ENABLE
37
38 void http_debug_printf(char *fmt, ...) G_GNUC_PRINTF (1,2);
39
40 #define DEBUG_HTTP(x) http_debug_printf x
41 /*#define ANALYZE_HTTP(x) http_debug_printf (x)*/
42 #define ANALYZE_HTTP(x) 
43
44 #else /* DEBUG_HTTP_ENABLE */
45
46 #define DEBUG_HTTP(x)
47 #define ANALYZE_HTTP(x) 
48
49 #endif /* DEBUG_HTTP_ENABLE */
50
51 #endif /* HTTP_METHOD_H */