summaryrefslogtreecommitdiff
path: root/libsoup/soup-coding-gzip.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2008-03-15 09:52:35 -0400
committerDan Winship <danw@gnome.org>2009-12-16 15:40:29 +0100
commit35e78b4ded68e5d6550d51ec161ff0034fd3736b (patch)
treee1f159185ed8ac8fcc8ceeef096b0b280f36c65c /libsoup/soup-coding-gzip.h
parent5a6e1e873e13e1bc77298b501ff6f7a66fadcb63 (diff)
downloadlibsoup-35e78b4ded68e5d6550d51ec161ff0034fd3736b.tar.gz
Content-Encoding support
Adds SoupContentDecoder, which provides support for decoding "gzip" Content-Encoding. For now other types are not supported and can't be added. The SoupCoding interface is private because it will eventually be replaced with something GConverter-based. https://bugzilla.gnome.org/show_bug.cgi?id=522772
Diffstat (limited to 'libsoup/soup-coding-gzip.h')
-rw-r--r--libsoup/soup-coding-gzip.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/libsoup/soup-coding-gzip.h b/libsoup/soup-coding-gzip.h
new file mode 100644
index 00000000..abdca374
--- /dev/null
+++ b/libsoup/soup-coding-gzip.h
@@ -0,0 +1,33 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2005 Novell, Inc.
+ * Copyright (C) 2008 Red Hat, Inc.
+ */
+
+#ifndef SOUP_CODING_GZIP_H
+#define SOUP_CODING_GZIP_H 1
+
+#include "soup-coding.h"
+
+#define SOUP_TYPE_CODING_GZIP (soup_coding_gzip_get_type ())
+#define SOUP_CODING_GZIP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), SOUP_TYPE_CODING_GZIP, SoupCodingGzip))
+#define SOUP_CODING_GZIP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_CODING_GZIP, SoupCodingGzipClass))
+#define SOUP_IS_CODING_GZIP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), SOUP_TYPE_CODING_GZIP))
+#define SOUP_IS_CODING_GZIP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOUP_TYPE_CODING_GZIP))
+#define SOUP_CODING_GZIP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_CODING_GZIP, SoupCodingGzipClass))
+
+typedef struct {
+ SoupCoding parent;
+
+} SoupCodingGzip;
+
+typedef struct {
+ SoupCodingClass parent_class;
+
+} SoupCodingGzipClass;
+
+GType soup_coding_gzip_get_type (void);
+
+SoupCoding *soup_coding_gzip_new (SoupCodingDirection direction);
+
+#endif /* SOUP_CODING_GZIP_H */