summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-12-28 10:32:11 -0500
committerDan Winship <danw@gnome.org>2012-12-28 11:26:45 -0500
commitddfbe30e04c8a9a8981d43b21c27b8bd8336e85b (patch)
treea69cd440e238fc9210e800cf8d6b48c6ab21f8ec
parent360a32a81904ce6f662de420cfa57961f2726d14 (diff)
downloadlibsoup-ddfbe30e04c8a9a8981d43b21c27b8bd8336e85b.tar.gz
Add back LIBSOUP_DISABLE_DEPRECATED
gtk-doc expects "Deprecated:" notes in docs to be matched up with some deprecation-guard #define. So even though we don't want people to use it any more, add LIBSOUP_DISABLE_DEPRECATED back.
-rw-r--r--docs/reference/Makefile.am2
-rw-r--r--libsoup/soup-cookie-jar.h2
-rw-r--r--libsoup/soup-logger.h2
-rw-r--r--libsoup/soup-message-headers.h2
-rw-r--r--libsoup/soup-message.h2
-rw-r--r--libsoup/soup-session.h2
-rw-r--r--tests/Makefile.am1
7 files changed, 11 insertions, 2 deletions
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 019746b3..7e6c180b 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -13,7 +13,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
DOC_SOURCE_DIR=../../libsoup
# Extra options to supply to gtkdoc-scan.
-SCAN_OPTIONS=--rebuild-types --ignore-decorators='SOUP_DEPRECATED\w*\s*\([^)]*\)|SOUP_DEPRECATED\w*|SOUP_AVAILABLE\w*'
+SCAN_OPTIONS=--deprecated-guards=LIBSOUP_DISABLE_DEPRECATED --rebuild-types --ignore-decorators='SOUP_DEPRECATED\w*\s*\([^)]*\)|SOUP_DEPRECATED\w*|SOUP_AVAILABLE\w*'
# Extra options to supply to gtkdoc-scangobj.
SCANGOBJ_OPTIONS=
diff --git a/libsoup/soup-cookie-jar.h b/libsoup/soup-cookie-jar.h
index 395fbe36..80497368 100644
--- a/libsoup/soup-cookie-jar.h
+++ b/libsoup/soup-cookie-jar.h
@@ -88,9 +88,11 @@ SoupCookieJarAcceptPolicy soup_cookie_jar_get_accept_policy (SoupCooki
SOUP_AVAILABLE_IN_2_40
gboolean soup_cookie_jar_is_persistent (SoupCookieJar *jar);
+#ifndef LIBSOUP_DISABLE_DEPRECATED
SOUP_AVAILABLE_IN_2_24
SOUP_DEPRECATED_IN_2_26
void soup_cookie_jar_save (SoupCookieJar *jar);
+#endif
G_END_DECLS
diff --git a/libsoup/soup-logger.h b/libsoup/soup-logger.h
index a33f3fa6..7cf95c4c 100644
--- a/libsoup/soup-logger.h
+++ b/libsoup/soup-logger.h
@@ -54,12 +54,14 @@ GType soup_logger_get_type (void);
SoupLogger *soup_logger_new (SoupLoggerLogLevel level,
int max_body_size);
+#ifndef LIBSOUP_DISABLE_DEPRECATED
SOUP_DEPRECATED_IN_2_24_FOR(soup_session_add_feature)
void soup_logger_attach (SoupLogger *logger,
SoupSession *session);
SOUP_DEPRECATED_IN_2_24_FOR(soup_session_remove_feature)
void soup_logger_detach (SoupLogger *logger,
SoupSession *session);
+#endif
void soup_logger_set_request_filter (SoupLogger *logger,
SoupLoggerFilter request_filter,
diff --git a/libsoup/soup-message-headers.h b/libsoup/soup-message-headers.h
index c6c43d5f..388d75b1 100644
--- a/libsoup/soup-message-headers.h
+++ b/libsoup/soup-message-headers.h
@@ -36,9 +36,11 @@ void soup_message_headers_clear (SoupMessageHeaders *hdrs);
SOUP_AVAILABLE_IN_2_36
void soup_message_headers_clean_connection_headers (SoupMessageHeaders *hdrs);
+#ifndef LIBSOUP_DISABLE_DEPRECATED
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);
+#endif
SOUP_AVAILABLE_IN_2_28
const char *soup_message_headers_get_one (SoupMessageHeaders *hdrs,
const char *name);
diff --git a/libsoup/soup-message.h b/libsoup/soup-message.h
index f0fbeb37..efcb923a 100644
--- a/libsoup/soup-message.h
+++ b/libsoup/soup-message.h
@@ -167,6 +167,7 @@ void soup_message_set_redirect (SoupMessage *msg,
const char *redirect_uri);
/* I/O */
+#ifndef LIBSOUP_DISABLE_DEPRECATED
typedef SoupBuffer * (*SoupChunkAllocator) (SoupMessage *msg,
gsize max_len,
gpointer user_data);
@@ -176,6 +177,7 @@ void soup_message_set_chunk_allocator (SoupMessage *msg,
SoupChunkAllocator allocator,
gpointer user_data,
GDestroyNotify destroy_notify);
+#endif
SOUP_AVAILABLE_IN_2_28
void soup_message_disable_feature (SoupMessage *msg,
diff --git a/libsoup/soup-session.h b/libsoup/soup-session.h
index b64fcaeb..40f1a8d5 100644
--- a/libsoup/soup-session.h
+++ b/libsoup/soup-session.h
@@ -103,10 +103,12 @@ void soup_session_cancel_message (SoupSession *session,
guint status_code);
void soup_session_abort (SoupSession *session);
+#ifndef LIBSOUP_DISABLE_DEPRECATED
/* SOUP_AVAILABLE_IN_2_30 -- this trips up gtkdoc-scan */
SOUP_DEPRECATED_IN_2_38_FOR (soup_session_prefetch_dns)
void soup_session_prepare_for_uri (SoupSession *session,
SoupURI *uri);
+#endif
SOUP_AVAILABLE_IN_2_38
void soup_session_prefetch_dns (SoupSession *session,
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a9184055..cd132bd6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,7 +1,6 @@
INCLUDES = \
-I$(top_srcdir) \
-DSRCDIR=\""$(abs_srcdir)"\" \
- -DLIBSOUP_DISABLE_DEPRECATED \
$(SOUP_MAINTAINER_FLAGS) \
$(XML_CFLAGS) \
$(GLIB_CFLAGS)