summaryrefslogtreecommitdiff
path: root/libs/net/grl-net-wc-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/net/grl-net-wc-private.h')
-rw-r--r--libs/net/grl-net-wc-private.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/libs/net/grl-net-wc-private.h b/libs/net/grl-net-wc-private.h
new file mode 100644
index 0000000..d954a20
--- /dev/null
+++ b/libs/net/grl-net-wc-private.h
@@ -0,0 +1,45 @@
+/*
+ * 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 _GrlNetWcPrivate {
+ 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;
+};