summaryrefslogtreecommitdiff
path: root/libsoup/soup-message-headers.h
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <icq@gnome.org>2015-10-26 15:49:03 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2015-11-09 09:54:31 +0100
commit6bd5d97189ea5336e3fdc53244565d7db028ae0e (patch)
tree7c8c149b3d5aa674e1970ba5fd073274dd2347ec /libsoup/soup-message-headers.h
parent30bd9de7dea3bdffbcfbc7a704046d79354a003f (diff)
downloadlibsoup-6bd5d97189ea5336e3fdc53244565d7db028ae0e.tar.gz
Mark all remaining methods with SOUP_AVAILABLE_IN_2_4
This way we can as well redefine _SOUP_EXTERN on msvc builds with the right extern value needed for it. This is the same we do on glib and gtk+ https://bugzilla.gnome.org/show_bug.cgi?id=757146
Diffstat (limited to 'libsoup/soup-message-headers.h')
-rw-r--r--libsoup/soup-message-headers.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libsoup/soup-message-headers.h b/libsoup/soup-message-headers.h
index ce8ff209..829e3522 100644
--- a/libsoup/soup-message-headers.h
+++ b/libsoup/soup-message-headers.h
@@ -11,6 +11,7 @@
G_BEGIN_DECLS
typedef struct SoupMessageHeaders SoupMessageHeaders;
+SOUP_AVAILABLE_IN_2_4
GType soup_message_headers_get_type (void);
#define SOUP_TYPE_MESSAGE_HEADERS (soup_message_headers_get_type ())
@@ -20,25 +21,32 @@ typedef enum {
SOUP_MESSAGE_HEADERS_MULTIPART
} SoupMessageHeadersType;
+SOUP_AVAILABLE_IN_2_4
SoupMessageHeaders *soup_message_headers_new (SoupMessageHeadersType type);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_free (SoupMessageHeaders *hdrs);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_append (SoupMessageHeaders *hdrs,
const char *name,
const char *value);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_replace (SoupMessageHeaders *hdrs,
const char *name,
const char *value);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_remove (SoupMessageHeaders *hdrs,
const char *name);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_clear (SoupMessageHeaders *hdrs);
SOUP_AVAILABLE_IN_2_36
void soup_message_headers_clean_connection_headers (SoupMessageHeaders *hdrs);
#ifndef SOUP_DISABLE_DEPRECATED
+SOUP_AVAILABLE_IN_2_4
SOUP_DEPRECATED_IN_2_28_FOR ("soup_message_headers_get_one or soup_message_headers_get_list")
const char *soup_message_headers_get (SoupMessageHeaders *hdrs,
const char *name);
@@ -62,6 +70,7 @@ typedef void (*SoupMessageHeadersForeachFunc)(const char *name,
const char *value,
gpointer user_data);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_foreach (SoupMessageHeaders *hdrs,
SoupMessageHeadersForeachFunc func,
gpointer user_data);
@@ -74,8 +83,10 @@ typedef struct {
gpointer dummy[3];
} SoupMessageHeadersIter;
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_iter_init (SoupMessageHeadersIter *iter,
SoupMessageHeaders *hdrs);
+SOUP_AVAILABLE_IN_2_4
gboolean soup_message_headers_iter_next (SoupMessageHeadersIter *iter,
const char **name,
const char **value);
@@ -91,11 +102,15 @@ typedef enum {
SOUP_ENCODING_BYTERANGES
} SoupEncoding;
+SOUP_AVAILABLE_IN_2_4
SoupEncoding soup_message_headers_get_encoding (SoupMessageHeaders *hdrs);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_set_encoding (SoupMessageHeaders *hdrs,
SoupEncoding encoding);
+SOUP_AVAILABLE_IN_2_4
goffset soup_message_headers_get_content_length (SoupMessageHeaders *hdrs);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_set_content_length (SoupMessageHeaders *hdrs,
goffset content_length);
@@ -104,7 +119,9 @@ typedef enum {
SOUP_EXPECTATION_CONTINUE = (1 << 1)
} SoupExpectation;
+SOUP_AVAILABLE_IN_2_4
SoupExpectation soup_message_headers_get_expectations (SoupMessageHeaders *hdrs);
+SOUP_AVAILABLE_IN_2_4
void soup_message_headers_set_expectations (SoupMessageHeaders *hdrs,
SoupExpectation expectations);