<refentry id="GMimePart">
<refmeta>
<refentrytitle role="top_of_page" id="GMimePart.top_of_page">GMimePart</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  GMIME Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GMimePart</refname>
<refpurpose>MIME parts</refpurpose>
</refnamediv>

<refsynopsisdiv id="GMimePart.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>                    <link linkend="GMimePart-struct">GMimePart</link>;
<link linkend="GMimePart"><returnvalue>GMimePart</returnvalue></link> *         <link linkend="g-mime-part-new">g_mime_part_new</link>                     (<parameter><type>void</type></parameter>);
<link linkend="GMimePart"><returnvalue>GMimePart</returnvalue></link> *         <link linkend="g-mime-part-new-with-type">g_mime_part_new_with_type</link>           (<parameter>const <link linkend="char"><type>char</type></link> *type</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *subtype</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-content-description">g_mime_part_set_content_description</link> (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *description</parameter>);
const <link linkend="char"><returnvalue>char</returnvalue></link> *        <link linkend="g-mime-part-get-content-description">g_mime_part_get_content_description</link> (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-content-id">g_mime_part_set_content_id</link>          (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *content_id</parameter>);
const <link linkend="char"><returnvalue>char</returnvalue></link> *        <link linkend="g-mime-part-get-content-id">g_mime_part_get_content_id</link>          (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-content-md5">g_mime_part_set_content_md5</link>         (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *content_md5</parameter>);
const <link linkend="char"><returnvalue>char</returnvalue></link> *        <link linkend="g-mime-part-get-content-md5">g_mime_part_get_content_md5</link>         (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="g-mime-part-verify-content-md5">g_mime_part_verify_content_md5</link>      (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-content-location">g_mime_part_set_content_location</link>    (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *content_location</parameter>);
const <link linkend="char"><returnvalue>char</returnvalue></link> *        <link linkend="g-mime-part-get-content-location">g_mime_part_get_content_location</link>    (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-content-encoding">g_mime_part_set_content_encoding</link>    (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter><link linkend="GMimeContentEncoding"><type>GMimeContentEncoding</type></link> encoding</parameter>);
<link linkend="GMimeContentEncoding"><returnvalue>GMimeContentEncoding</returnvalue></link>  <link linkend="g-mime-part-get-content-encoding">g_mime_part_get_content_encoding</link>  (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="GMimeContentEncoding"><returnvalue>GMimeContentEncoding</returnvalue></link>  <link linkend="g-mime-part-get-best-content-encoding">g_mime_part_get_best_content_encoding</link>
                                                        (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter><link linkend="GMimeEncodingConstraint"><type>GMimeEncodingConstraint</type></link> constraint</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-filename">g_mime_part_set_filename</link>            (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *filename</parameter>);
const <link linkend="char"><returnvalue>char</returnvalue></link> *        <link linkend="g-mime-part-get-filename">g_mime_part_get_filename</link>            (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="GMimeDataWrapper"><returnvalue>GMimeDataWrapper</returnvalue></link> *  <link linkend="g-mime-part-get-content-object">g_mime_part_get_content_object</link>      (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-part-set-content-object">g_mime_part_set_content_object</link>      (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter><link linkend="GMimeDataWrapper"><type>GMimeDataWrapper</type></link> *content</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="GMimePart.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GMimeObject">GMimeObject</link>
         +----GMimePart
               +----<link linkend="GMimeMessagePartial">GMimeMessagePartial</link>
</synopsis>
</refsect1>

<refsect1 id="GMimePart.description" role="desc">
<title role="desc.title">Description</title>
<para>
A <link linkend="GMimePart"><type>GMimePart</type></link> represents any MIME leaf part (meaning it has no
sub-parts).
</para>
</refsect1>
<refsect1 id="GMimePart.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GMimePart-struct" role="struct">
<title>GMimePart</title>
<indexterm zone="GMimePart-struct"><primary>GMimePart</primary></indexterm>
<programlisting>typedef struct _GMimePart GMimePart;</programlisting>
<para>
A leaf-node MIME part object.
</para><variablelist role="struct">
</variablelist></refsect2>
<refsect2 id="g-mime-part-new" role="function">
<title>g_mime_part_new ()</title>
<indexterm zone="g-mime-part-new"><primary>g_mime_part_new</primary></indexterm>
<programlisting><link linkend="GMimePart"><returnvalue>GMimePart</returnvalue></link> *         g_mime_part_new                     (<parameter><type>void</type></parameter>);</programlisting>
<para>
Creates a new MIME Part object with a default content-type of
text/plain.
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> an empty MIME Part object with a default content-type of
text/plain.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-new-with-type" role="function">
<title>g_mime_part_new_with_type ()</title>
<indexterm zone="g-mime-part-new-with-type"><primary>g_mime_part_new_with_type</primary></indexterm>
<programlisting><link linkend="GMimePart"><returnvalue>GMimePart</returnvalue></link> *         g_mime_part_new_with_type           (<parameter>const <link linkend="char"><type>char</type></link> *type</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *subtype</parameter>);</programlisting>
<para>
Creates a new MIME Part with a sepcified type.
</para><variablelist role="params">
<varlistentry><term><parameter>type</parameter>&#160;:</term>
<listitem><simpara>content-type string
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>subtype</parameter>&#160;:</term>
<listitem><simpara>content-subtype string
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> an empty MIME Part object with the specified content-type.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-content-description" role="function">
<title>g_mime_part_set_content_description ()</title>
<indexterm zone="g-mime-part-set-content-description"><primary>g_mime_part_set_content_description</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_content_description (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *description</parameter>);</programlisting>
<para>
Set the content description for the specified mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>description</parameter>&#160;:</term>
<listitem><simpara>content description
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-content-description" role="function">
<title>g_mime_part_get_content_description ()</title>
<indexterm zone="g-mime-part-get-content-description"><primary>g_mime_part_get_content_description</primary></indexterm>
<programlisting>const <link linkend="char"><returnvalue>char</returnvalue></link> *        g_mime_part_get_content_description (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the value of the Content-Description for the specified mime
part if it exists or <link linkend="NULL:CAPS"><literal>NULL</literal></link> otherwise.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the content description for the specified mime part.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-content-id" role="function">
<title>g_mime_part_set_content_id ()</title>
<indexterm zone="g-mime-part-set-content-id"><primary>g_mime_part_set_content_id</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_content_id          (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *content_id</parameter>);</programlisting>
<para>
Set the content id for the specified mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>content_id</parameter>&#160;:</term>
<listitem><simpara>content id
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-content-id" role="function">
<title>g_mime_part_get_content_id ()</title>
<indexterm zone="g-mime-part-get-content-id"><primary>g_mime_part_get_content_id</primary></indexterm>
<programlisting>const <link linkend="char"><returnvalue>char</returnvalue></link> *        g_mime_part_get_content_id          (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the content-id of the specified mime part if it exists, or
<link linkend="NULL:CAPS"><literal>NULL</literal></link> otherwise.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the content id for the specified mime part.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-content-md5" role="function">
<title>g_mime_part_set_content_md5 ()</title>
<indexterm zone="g-mime-part-set-content-md5"><primary>g_mime_part_set_content_md5</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_content_md5         (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *content_md5</parameter>);</programlisting>
<para>
Set the content md5 for the specified mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>content_md5</parameter>&#160;:</term>
<listitem><simpara>content md5 or <link linkend="NULL:CAPS"><literal>NULL</literal></link> to generate the md5 digest.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-content-md5" role="function">
<title>g_mime_part_get_content_md5 ()</title>
<indexterm zone="g-mime-part-get-content-md5"><primary>g_mime_part_get_content_md5</primary></indexterm>
<programlisting>const <link linkend="char"><returnvalue>char</returnvalue></link> *        g_mime_part_get_content_md5         (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the md5sum contained in the Content-Md5 header of the
specified mime part if it exists, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> otherwise.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the content md5 for the specified mime part.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-verify-content-md5" role="function">
<title>g_mime_part_verify_content_md5 ()</title>
<indexterm zone="g-mime-part-verify-content-md5"><primary>g_mime_part_verify_content_md5</primary></indexterm>
<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            g_mime_part_verify_content_md5      (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Verify the content md5 for the specified mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the md5 is valid or <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise. Note: will
return <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> if the mime part does not contain a Content-MD5.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-content-location" role="function">
<title>g_mime_part_set_content_location ()</title>
<indexterm zone="g-mime-part-set-content-location"><primary>g_mime_part_set_content_location</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_content_location    (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *content_location</parameter>);</programlisting>
<para>
Set the content location for the specified mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>content_location</parameter>&#160;:</term>
<listitem><simpara>content location
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-content-location" role="function">
<title>g_mime_part_get_content_location ()</title>
<indexterm zone="g-mime-part-get-content-location"><primary>g_mime_part_get_content_location</primary></indexterm>
<programlisting>const <link linkend="char"><returnvalue>char</returnvalue></link> *        g_mime_part_get_content_location    (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the value of the Content-Location header if it exists, or
<link linkend="NULL:CAPS"><literal>NULL</literal></link> otherwise.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the content location for the specified mime part.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-content-encoding" role="function">
<title>g_mime_part_set_content_encoding ()</title>
<indexterm zone="g-mime-part-set-content-encoding"><primary>g_mime_part_set_content_encoding</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_content_encoding    (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter><link linkend="GMimeContentEncoding"><type>GMimeContentEncoding</type></link> encoding</parameter>);</programlisting>
<para>
Set the content encoding for the specified mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>encoding</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimeContentEncoding"><type>GMimeContentEncoding</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-content-encoding" role="function">
<title>g_mime_part_get_content_encoding ()</title>
<indexterm zone="g-mime-part-get-content-encoding"><primary>g_mime_part_get_content_encoding</primary></indexterm>
<programlisting><link linkend="GMimeContentEncoding"><returnvalue>GMimeContentEncoding</returnvalue></link>  g_mime_part_get_content_encoding  (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the content encoding of the mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the content encoding for the specified mime part.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-best-content-encoding" role="function">
<title>g_mime_part_get_best_content_encoding ()</title>
<indexterm zone="g-mime-part-get-best-content-encoding"><primary>g_mime_part_get_best_content_encoding</primary></indexterm>
<programlisting><link linkend="GMimeContentEncoding"><returnvalue>GMimeContentEncoding</returnvalue></link>  g_mime_part_get_best_content_encoding
                                                        (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter><link linkend="GMimeEncodingConstraint"><type>GMimeEncodingConstraint</type></link> constraint</parameter>);</programlisting>
<para>
Calculates the most efficient content encoding for the <parameter>mime_part</parameter>
given the <parameter>constraint</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>constraint</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimeEncodingConstraint"><type>GMimeEncodingConstraint</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the best content encoding for the specified mime part.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-filename" role="function">
<title>g_mime_part_set_filename ()</title>
<indexterm zone="g-mime-part-set-filename"><primary>g_mime_part_set_filename</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_filename            (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter>const <link linkend="char"><type>char</type></link> *filename</parameter>);</programlisting>
<para>
Sets the "filename" parameter on the Content-Disposition and also sets the
"name" parameter on the Content-Type.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&#160;:</term>
<listitem><simpara>the filename of the Mime Part's content
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-filename" role="function">
<title>g_mime_part_get_filename ()</title>
<indexterm zone="g-mime-part-get-filename"><primary>g_mime_part_get_filename</primary></indexterm>
<programlisting>const <link linkend="char"><returnvalue>char</returnvalue></link> *        g_mime_part_get_filename            (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the filename of the specificed mime part, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if the mime
part does not have the filename or name parameter set.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the filename of the specified MIME Part. It first checks to
see if the "filename" parameter was set on the Content-Disposition
and if not then checks the "name" parameter in the Content-Type.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-get-content-object" role="function">
<title>g_mime_part_get_content_object ()</title>
<indexterm zone="g-mime-part-get-content-object"><primary>g_mime_part_get_content_object</primary></indexterm>
<programlisting><link linkend="GMimeDataWrapper"><returnvalue>GMimeDataWrapper</returnvalue></link> *  g_mime_part_get_content_object      (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>);</programlisting>
<para>
Gets the internal data-wrapper of the specified mime part, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
on error.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the data-wrapper for the mime part's contents.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-part-set-content-object" role="function">
<title>g_mime_part_set_content_object ()</title>
<indexterm zone="g-mime-part-set-content-object"><primary>g_mime_part_set_content_object</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_part_set_content_object      (<parameter><link linkend="GMimePart"><type>GMimePart</type></link> *mime_part</parameter>,
                                                         <parameter><link linkend="GMimeDataWrapper"><type>GMimeDataWrapper</type></link> *content</parameter>);</programlisting>
<para>
Sets the content object on the mime part.
</para><variablelist role="params">
<varlistentry><term><parameter>mime_part</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePart"><type>GMimePart</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>content</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimeDataWrapper"><type>GMimeDataWrapper</type></link> content object
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>

</refentry>
