gmime r1284 - branches/gmime-2-2/gmime



Author: fejj
Date: Mon May 26 12:15:28 2008
New Revision: 1284
URL: http://svn.gnome.org/viewvc/gmime?rev=1284&view=rev

Log:
marked gmime_part_[g,s]et_content_type as deprecated

Modified:
   branches/gmime-2-2/gmime/gmime-part.c
   branches/gmime-2-2/gmime/gmime-part.h

Modified: branches/gmime-2-2/gmime/gmime-part.c
==============================================================================
--- branches/gmime-2-2/gmime/gmime-part.c	(original)
+++ branches/gmime-2-2/gmime/gmime-part.c	Mon May 26 12:15:28 2008
@@ -776,6 +776,9 @@
  * @mime_type: Mime content-type
  *
  * Set the content type/subtype for the specified mime part.
+ *
+ * WARNING: This interface is deprecated. Use
+ * g_mime_object_set_content_type().
  **/
 void
 g_mime_part_set_content_type (GMimePart *mime_part, GMimeContentType *mime_type)
@@ -794,6 +797,9 @@
  * Gets the Content-Type object for the given mime part or %NULL on
  * error.
  *
+ * WARNING: This interface is deprecated. Use
+ * g_mime_object_get_content_type().
+ *
  * Returns the content-type object for the specified mime part.
  **/
 const GMimeContentType *

Modified: branches/gmime-2-2/gmime/gmime-part.h
==============================================================================
--- branches/gmime-2-2/gmime/gmime-part.h	(original)
+++ branches/gmime-2-2/gmime/gmime-part.h	Mon May 26 12:15:28 2008
@@ -83,8 +83,10 @@
 void g_mime_part_set_content_location (GMimePart *mime_part, const char *content_location);
 const char *g_mime_part_get_content_location (GMimePart *mime_part);
 
+#ifndef GMIME_DISABLE_DEPRECATED
 void g_mime_part_set_content_type (GMimePart *mime_part, GMimeContentType *mime_type);
 const GMimeContentType *g_mime_part_get_content_type (GMimePart *mime_part);
+#endif /* GMIME_DISABLE_DEPRECATED */
 
 void g_mime_part_set_encoding (GMimePart *mime_part, GMimePartEncodingType encoding);
 GMimePartEncodingType g_mime_part_get_encoding (GMimePart *mime_part);



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