aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-content-field.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-11 07:22:44 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-11 07:22:44 +0800
commit9d041c9464b7e13cce7368e644781971d9ad5501 (patch)
treea7671cef07919885cb61baa31cade7bdccaa7a1e /camel/gmime-content-field.h
parent7d7f5423308313eb30558700598091b4ba1f0d20 (diff)
downloadgsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.tar
gsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.tar.gz
gsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.tar.bz2
gsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.tar.lz
gsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.tar.xz
gsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.tar.zst
gsoc2013-evolution-9d041c9464b7e13cce7368e644781971d9ad5501.zip
implemented destructors.
1999-08-11 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-multipart.c (_finalize): * camel/camel-simple-data-wrapper.c (_finalize): * camel/camel-mime-part.c (_finalize): implemented destructors. * camel/gmime-content-field.c (gmime_content_field_ref): (gmime_content_field_unref): New reference mechanism for GMimeContentField objects. * camel/camel-data-wrapper.c (_finalize): Started implementing destructors. * camel/camel-mime-part.c (_construct_from_stream): * camel/gmime-content-field.c (gmime_content_field_write_to_stream): * camel/camel-multipart.c (_construct_from_stream): removed forgotten anarchic traces. Go away memory leaks! svn path=/trunk/; revision=1103
Diffstat (limited to 'camel/gmime-content-field.h')
-rw-r--r--camel/gmime-content-field.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/gmime-content-field.h b/camel/gmime-content-field.h
index 663c747291..01045545ec 100644
--- a/camel/gmime-content-field.h
+++ b/camel/gmime-content-field.h
@@ -41,9 +41,14 @@ typedef struct {
gchar *subtype;
GHashTable *parameters;
+ gint ref;
+
} GMimeContentField;
GMimeContentField *gmime_content_field_new (const gchar *type, const gchar *subtype);
+void gmime_content_field_ref (GMimeContentField *content_field);
+void gmime_content_field_unref (GMimeContentField *content_field);
+
void gmime_content_field_set_parameter (GMimeContentField *content_field, const gchar *attribute, const gchar *value);
void gmime_content_field_write_to_stream (GMimeContentField *content_field, CamelStream *stream);
void gmime_content_field_construct_from_string (GMimeContentField *content_field, const gchar *string);