gmime r1313 - in trunk: . docs/reference gmime mono
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1313 - in trunk: . docs/reference gmime mono
- Date: Sat, 31 May 2008 16:28:53 +0000 (UTC)
Author: fejj
Date: Sat May 31 16:28:52 2008
New Revision: 1313
URL: http://svn.gnome.org/viewvc/gmime?rev=1313&view=rev
Log:
2008-05-31 Jeffrey Stedfast <fejj novell com>
* gmime/gmime-object.c (g_mime_object_get_header_list): New
function to get at the GMimeObject headers.
Modified:
trunk/ChangeLog
trunk/docs/reference/gmime-sections.txt
trunk/docs/reference/gmime.hierarchy
trunk/gmime/gmime-object.c
trunk/gmime/gmime-object.h
trunk/mono/GMime.metadata
trunk/mono/gmime-api.raw
Modified: trunk/docs/reference/gmime-sections.txt
==============================================================================
--- trunk/docs/reference/gmime-sections.txt (original)
+++ trunk/docs/reference/gmime-sections.txt Sat May 31 16:28:52 2008
@@ -655,6 +655,7 @@
g_mime_object_set_header
g_mime_object_get_header
g_mime_object_get_headers
+g_mime_object_get_header_list
g_mime_object_write_to_stream
g_mime_object_to_string
Modified: trunk/docs/reference/gmime.hierarchy
==============================================================================
--- trunk/docs/reference/gmime.hierarchy (original)
+++ trunk/docs/reference/gmime.hierarchy Sat May 31 16:28:52 2008
@@ -36,4 +36,3 @@
GMimeStreamMmap
GMimeStreamNull
GInterface
- GTypePlugin
Modified: trunk/gmime/gmime-object.c
==============================================================================
--- trunk/gmime/gmime-object.c (original)
+++ trunk/gmime/gmime-object.c Sat May 31 16:28:52 2008
@@ -901,6 +901,24 @@
}
+/**
+ * g_mime_object_get_header_list:
+ * @object: a #GMimeObject
+ *
+ * Get the header list for @object.
+ *
+ * Returns the #GMimeHeaderList for @object. Do not free this pointer
+ * when you are done with it.
+ **/
+GMimeHeaderList *
+g_mime_object_get_header_list (GMimeObject *object)
+{
+ g_return_val_if_fail (GMIME_IS_OBJECT (object), NULL);
+
+ return object->headers;
+}
+
+
static void
subtype_bucket_foreach (gpointer key, gpointer value, gpointer user_data)
{
Modified: trunk/gmime/gmime-object.h
==============================================================================
--- trunk/gmime/gmime-object.h (original)
+++ trunk/gmime/gmime-object.h Sat May 31 16:28:52 2008
@@ -110,8 +110,7 @@
const char *g_mime_object_get_header (GMimeObject *object, const char *header);
gboolean g_mime_object_remove_header (GMimeObject *object, const char *header);
-void g_mime_object_set_header_list (GMimeObject *object, GMimeHeaderList *headers);
-const GMimeHeaderList *g_mime_object_get_header_list (GMimeObject *object);
+GMimeHeaderList *g_mime_object_get_header_list (GMimeObject *object);
char *g_mime_object_get_headers (GMimeObject *object);
Modified: trunk/mono/GMime.metadata
==============================================================================
--- trunk/mono/GMime.metadata (original)
+++ trunk/mono/GMime.metadata Sat May 31 16:28:52 2008
@@ -13,15 +13,6 @@
<attr path="/api/namespace/enum/member[ cname='GMIME_BEST_ENCODING_7BIT']" name="name">SevenBit</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_BEST_ENCODING_8BIT']" name="name">EightBit</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_DEFAULT']" name="name">Default</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_7BIT']" name="name">SevenBit</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_8BIT']" name="name">EightBit</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_BINARY']" name="name">Binary</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_BASE64']" name="name">Base64</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_QUOTEDPRINTABLE']" name="name">QuotedPrintable</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_ENCODING_UUENCODE']" name="name">UuEncode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_PART_NUM_ENCODINGS']" name="hidden">true</attr>
-
<attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_DEFAULT']" name="name">Default</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_7BIT']" name="name">SevenBit</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_8BIT']" name="name">EightBit</attr>
@@ -29,14 +20,6 @@
<attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_BASE64']" name="name">Base64</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_QUOTEDPRINTABLE']" name="name">QuotedPrintable</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_UUENCODE']" name="name">UuEncode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_CONTENT_ENCODING_COUNT']" name="hidden">true</attr>
-
- <attr path="/api/namespace/enum/member[ cname='GMIME_FILTER_BASIC_BASE64_ENC']" name="name">Base64Encode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_FILTER_BASIC_BASE64_DEC']" name="name">Base64Decode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_FILTER_BASIC_QP_ENC']" name="name">QpEncode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_FILTER_BASIC_QP_DEC']" name="name">QpDecode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_FILTER_BASIC_UU_ENC']" name="name">UuEncode</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_FILTER_BASIC_UU_DEC']" name="name">UuDecode</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_STREAM_SEEK_SET']" name="value">0</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_STREAM_SEEK_CUR']" name="value">1</attr>
@@ -99,15 +82,15 @@
<attr path="/api/namespace/struct[ cname='InternetAddress']/method[ cname='internet_address_get_type']" name="name">GetAddressType</attr>
<!-- Fix the base64/uu/qp encoder/decoder APIs. -->
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='inbuf']" name="type">const-guint8*</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='inbuf']" name="array">true</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='inlen']" name="name">n_inbuf</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='uubuf']" name="type">guint8*</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='uubuf']" name="array">true</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='outbuf']" name="type">guint8*</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='outbuf']" name="array">true</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='state']" name="pass_as">ref</attr>
- <attr path="/api/namespace/class[ name='Utils']/*/*/parameter[ name='save']" name="pass_as">ref</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='inbuf']" name="type">const-guint8*</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='inbuf']" name="array">true</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='inlen']" name="name">n_inbuf</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='uubuf']" name="type">guint8*</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='uubuf']" name="array">true</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='outbuf']" name="type">guint8*</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='outbuf']" name="array">true</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='state']" name="pass_as">ref</attr>
+ <attr path="/api/namespace/struct[ name='Encoding']/*/*/parameter[ name='save']" name="pass_as">ref</attr>
<!-- Fix/Remove some other APIs from gmime-utils -->
<remove-node path="/api/namespace/class[ name='Utils']/method[ cname='g_mime_utils_decode_8bit']"/>
Modified: trunk/mono/gmime-api.raw
==============================================================================
--- trunk/mono/gmime-api.raw (original)
+++ trunk/mono/gmime-api.raw Sat May 31 16:28:52 2008
@@ -1120,7 +1120,7 @@
</parameters>
</method>
<method name="GetHeaderList" cname="g_mime_object_get_header_list">
- <return-type type="const-GMimeHeaderList*" />
+ <return-type type="GMimeHeaderList*" />
</method>
<method name="GetHeaders" cname="g_mime_object_get_headers">
<return-type type="char*" />
@@ -1200,12 +1200,6 @@
<parameter type="const-char*" name="value" />
</parameters>
</method>
- <method name="SetHeaderList" cname="g_mime_object_set_header_list">
- <return-type type="void" />
- <parameters>
- <parameter type="GMimeHeaderList*" name="headers" />
- </parameters>
- </method>
<method name="ToString" cname="g_mime_object_to_string">
<return-type type="char*" />
</method>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]