[libsoup] Add deprecation attributes to deprecated functions



commit 804281853d8a683bfdb61310827c16101fe8414b
Author: Javier JardÃn <jjardon gnome org>
Date:   Sat Mar 10 12:24:05 2012 +0000

    Add deprecation attributes to deprecated functions
    
    This is using the newly introduce G_DEPRECATED macros
    from GLib. Traditional deprecation guards are still in
    place.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=671770

 libsoup/soup-logger.h          |    2 ++
 libsoup/soup-message-headers.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-logger.h b/libsoup/soup-logger.h
index c6d3a39..8ada23d 100644
--- a/libsoup/soup-logger.h
+++ b/libsoup/soup-logger.h
@@ -55,8 +55,10 @@ SoupLogger *soup_logger_new         (SoupLoggerLogLevel  level,
 				     int                 max_body_size);
 #ifndef LIBSOUP_DISABLE_DEPRECATED
 /* Use soup_session_add/remove_feature */
+G_DEPRECATED_FOR(soup_session_add_feature)
 void        soup_logger_attach      (SoupLogger         *logger,
 				     SoupSession        *session);
+G_DEPRECATED_FOR(soup_session_remove_feature)
 void        soup_logger_detach      (SoupLogger         *logger,
 				     SoupSession        *session);
 #endif
diff --git a/libsoup/soup-message-headers.h b/libsoup/soup-message-headers.h
index e1dec1d..bf68ea2 100644
--- a/libsoup/soup-message-headers.h
+++ b/libsoup/soup-message-headers.h
@@ -36,6 +36,7 @@ void                soup_message_headers_clear    (SoupMessageHeaders *hdrs);
 void                soup_message_headers_clean_connection_headers (SoupMessageHeaders *hdrs);
 
 #ifndef LIBSOUP_DISABLE_DEPRECATED
+G_DEPRECATED_FOR(soup_message_headers_get_one or soup_message_headers_get_one)
 const char         *soup_message_headers_get      (SoupMessageHeaders *hdrs,
 						   const char         *name);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]