gmime r1325 - in trunk: . docs/reference gmime mono
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1325 - in trunk: . docs/reference gmime mono
- Date: Sun, 1 Jun 2008 17:05:41 +0000 (UTC)
Author: fejj
Date: Sun Jun 1 17:05:41 2008
New Revision: 1325
URL: http://svn.gnome.org/viewvc/gmime?rev=1325&view=rev
Log:
2008-06-01 Jeffrey Stedfast <fejj novell com>
* gmime/gmime-param.c (g_mime_param_next): New helper function for
bindings.
(g_mime_param_get_name): Same.
(g_mime_param_get_value): Same.
Modified:
trunk/ChangeLog
trunk/docs/reference/gmime-sections.txt
trunk/gmime/gmime-param.c
trunk/gmime/gmime-param.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 Sun Jun 1 17:05:41 2008
@@ -563,6 +563,9 @@
g_mime_param_new
g_mime_param_new_from_string
g_mime_param_destroy
+g_mime_param_next
+g_mime_param_get_name
+g_mime_param_get_value
g_mime_param_append
g_mime_param_append_param
g_mime_param_write_to_string
Modified: trunk/gmime/gmime-param.c
==============================================================================
--- trunk/gmime/gmime-param.c (original)
+++ trunk/gmime/gmime-param.c Sun Jun 1 17:05:41 2008
@@ -647,6 +647,57 @@
/**
+ * g_mime_param_next:
+ * @param: a #GMimeParam node
+ *
+ * Gets the next #GMimeParam node in the list.
+ *
+ * Returns: the next #GMimeParam node in the list.
+ **/
+const GMimeParam *
+g_mime_param_next (const GMimeParam *param)
+{
+ g_return_val_if_fail (param != NULL, NULL);
+
+ return param->next;
+}
+
+
+/**
+ * g_mime_param_get_name:
+ * @param: a #GMimeParam
+ *
+ * Gets the name of the parameter.
+ *
+ * Returns: the name of the parameter.
+ **/
+const char *
+g_mime_param_get_name (const GMimeParam *param)
+{
+ g_return_val_if_fail (param != NULL, NULL);
+
+ return param->name;
+}
+
+
+/**
+ * g_mime_param_get_value:
+ * @param: a #GMimeParam
+ *
+ * Gets the value of the parameter.
+ *
+ * Returns: the value of the parameter.
+ **/
+const char *
+g_mime_param_get_value (const GMimeParam *param)
+{
+ g_return_val_if_fail (param != NULL, NULL);
+
+ return param->value;
+}
+
+
+/**
* g_mime_param_append:
* @params: param list
* @name: new param name
@@ -798,7 +849,7 @@
}
static void
-param_list_format (GString *out, GMimeParam *param, gboolean fold)
+param_list_format (GString *out, const GMimeParam *param, gboolean fold)
{
int used = out->len;
@@ -919,7 +970,7 @@
* Writes the params out to the string @string.
**/
void
-g_mime_param_write_to_string (GMimeParam *param, gboolean fold, GString *str)
+g_mime_param_write_to_string (const GMimeParam *param, gboolean fold, GString *str)
{
g_return_if_fail (str != NULL);
Modified: trunk/gmime/gmime-param.h
==============================================================================
--- trunk/gmime/gmime-param.h (original)
+++ trunk/gmime/gmime-param.h Sun Jun 1 17:05:41 2008
@@ -48,10 +48,15 @@
GMimeParam *g_mime_param_new_from_string (const char *str);
void g_mime_param_destroy (GMimeParam *param);
+const GMimeParam *g_mime_param_next (const GMimeParam *param);
+
GMimeParam *g_mime_param_append (GMimeParam *params, const char *name, const char *value);
GMimeParam *g_mime_param_append_param (GMimeParam *params, GMimeParam *param);
-void g_mime_param_write_to_string (GMimeParam *param, gboolean fold, GString *str);
+const char *g_mime_param_get_name (const GMimeParam *param);
+const char *g_mime_param_get_value (const GMimeParam *param);
+
+void g_mime_param_write_to_string (const GMimeParam *param, gboolean fold, GString *str);
G_END_DECLS
Modified: trunk/mono/GMime.metadata
==============================================================================
--- trunk/mono/GMime.metadata (original)
+++ trunk/mono/GMime.metadata Sun Jun 1 17:05:41 2008
@@ -21,11 +21,23 @@
<remove-node path="/api/namespace/class[ name='Strcase']"/>
<!-- CipherContext -->
-
+ <remove-node path="/api/namespace/struct[ cname='GMimeSignatureValidity']/field[ cname='signers']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeSigner']/field[ cname='next']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeSigner']/field[ cname='unused']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeSigner']/field[ cname='keyid']"/>
+
<!-- ContentDisposition -->
-
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentDisposition']/field[ cname='parent_object']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentDisposition']/field[ cname='param_hash']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentDisposition']/field[ cname='params']"/>
+
<!-- ContentType -->
-
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentType']/field[ cname='parent_object']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentType']/field[ cname='param_hash']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentType']/field[ cname='params']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentType']/field[ cname='subtype']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeContentType']/field[ cname='type']"/>
+
<!-- DataWrapper -->
<attr path="/api/namespace/object[ cname='GMimeDataWrapper']/method[ name='GetStream']" name="name">GetGMimeStream</attr>
<attr path="/api/namespace/object[ cname='GMimeDataWrapper']/method[ name='SetStream']" name="name">SetGMimeStream</attr>
@@ -80,6 +92,12 @@
<attr path="/api/namespace/enum/member[ cname='GMIME_STREAM_SEEK_CUR']" name="value">1</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_STREAM_SEEK_END']" name="value">2</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_NONE']" name="name">None</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_EXPSIG']" name="name">ExpiredSignature</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_NO_PUBKEY']" name="name">NoPublicKey</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_EXPKEYSIG']" name="name">ExpiredSignatureKey</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_REVKEYSIG']" name="name">RevokedSignatureKey</attr>
+
<!-- Filter -->
<attr path="/api/namespace/object[ cname='GMimeFilter']/method[ cname='g_mime_filter_filter']" name="name">ApplyFilter</attr>
<attr path="/api/namespace/object[ cname='GMimeFilter']/*/*/parameter[ name='inbuf']" name="type">const-guint8*</attr>
@@ -109,6 +127,8 @@
GType property regardless of whether or not it's actually a glib type
So rename this one -->
<attr path="/api/namespace/struct[ cname='InternetAddress']/method[ cname='internet_address_get_type']" name="name">GetAddressType</attr>
+ <remove-node path="/api/namespace/struct[ cname='InternetAddress']/field[ cname='refcount']"/>
+ <remove-node path="/api/namespace/struct[ cname='InternetAddress']/field[ cname='type']"/>
<!-- InternetAddressList -->
<!-- We implement this class by hand, hide it. -->
@@ -142,7 +162,10 @@
<remove-node path="/api/namespace/object[ cname='GMimeObject']/method[ cname='g_mime_object_set_content_disposition_parameter']"/>
<!-- Param -->
-
+ <remove-node path="/api/namespace/struct[ cname='GMimeParam']/field[ cname='value']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeParam']/field[ cname='name']"/>
+ <remove-node path="/api/namespace/struct[ cname='GMimeParam']/field[ cname='next']"/>
+
<!-- Parser -->
<attr path="/api/namespace/object[ cname='GMimeParser']/method[ name='ConstructPart']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[ cname='GMimeParser']/method[ name='ConstructMessage']/return-type" name="owned">true</attr>
@@ -193,6 +216,6 @@
<!-- Yencode -->
<!-- We've already moved the encoder/decoder functions into Encoding... -->
- <remove-node path="/api/namespace/class[ name='Yencode']"/>
+ <attr path="/api/namespace/class[ name='Yencode']" name="hidden">true</attr>
</metadata>
Modified: trunk/mono/gmime-api.raw
==============================================================================
--- trunk/mono/gmime-api.raw (original)
+++ trunk/mono/gmime-api.raw Sun Jun 1 17:05:41 2008
@@ -2245,6 +2245,12 @@
<method name="Destroy" cname="g_mime_param_destroy">
<return-type type="void" />
</method>
+ <method name="GetName" cname="g_mime_param_get_name">
+ <return-type type="const-char*" />
+ </method>
+ <method name="GetValue" cname="g_mime_param_get_value">
+ <return-type type="const-char*" />
+ </method>
<constructor cname="g_mime_param_new">
<parameters>
<parameter type="const-char*" name="name" />
@@ -2256,6 +2262,9 @@
<parameter type="const-char*" name="str" />
</parameters>
</constructor>
+ <method name="Next" cname="g_mime_param_next">
+ <return-type type="const-GMimeParam*" />
+ </method>
<method name="WriteToString" cname="g_mime_param_write_to_string">
<return-type type="void" />
<parameters>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]