blob: 72b6dd5c2fd005a69d4a1eff56bff5a14c34fab8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* Copyright (C) 2010, 2011 Igalia S.L.
* Copyright (C) 2012 Canonical Ltd.
*
* Contact: Iago Toral Quiroga <itoral@igalia.com>
*
* Authors: Víctor M. Jáquez L. <vjaquez@igalia.com>
* Juan A. Suarez Romero <jasuarez@igalia.com>
* Jens Georg <jensg@openismus.com>
* Mathias Hasselmann <mathias@openismus.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#include <libsoup/soup.h>
struct _GrlNetWc {
GObject parent;
SoupSession *session;
char *user_agent;
SoupLoggerLogLevel log_level;
/* throttling in secs */
guint throttling;
/* last request time, timestamp in seconds */
gint64 last_request;
/* closure queue for delayed requests */
GQueue *pending;
/* cache size in Mb */
gboolean use_cache;
guint cache_size;
gchar *previous_data;
};
|