aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-content-field.h
blob: 5a28d0fedb77d0c94df228002fce1bacd768b0fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* mime-content_field.h : mime content type field utilities  */

/* 
 *
 * Author : 
 *  Bertrand Guiheneuf <bertrand@helixcode.com>
 *
 * Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com)
 *
 * This program is free software; you can redistribute it and/or 
 * modify it under the terms of the GNU General Public License as 
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */


#ifndef GMIME_CONTENT_FIELD_H
#define GMIME_CONTENT_FIELD_H 1


#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

#include <glib.h>
#include <stdio.h>
#include <camel/camel-stream.h>
#include <camel/camel-mime-utils.h>

typedef struct {
    struct _header_content_type *content_type;

    /* these should be deprecated (use the accessors) */
    char *type;     /* these are only copies of the ones in content_type */
    char *subtype;

    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);
void gmime_content_field_free (GMimeContentField *content_field);
gchar * gmime_content_field_get_mime_type (GMimeContentField *content_field);
const gchar *gmime_content_field_get_parameter (GMimeContentField *content_field, const gchar *name);

int gmime_content_field_is_type (GMimeContentField *content_field, const char *type, const char *subtype);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* GMIME_CONTENT_FIELD_H */
-1.3.8&id=a79e19f5d382b5a7506e34e55d20b1959cb21599'>Fix the build on 11.0.kwm2013-11-181-0/+32 * Support stage.kwm2013-10-202-4/+5 * Fix build on 11.0-CURRENT.kwm2013-10-191-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - convert to the new perl5 frameworkaz2013-09-131-2/+2 * The FreeBSD GNOME team presents a Glib and Gtk+ 3 update.kwm2013-07-3115-574/+16 * This port needs pkg-configkwm2013-05-181-1/+1 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-1/+1 * Fix the build on FreeBSD 10.X.marcus2011-12-291-19/+19 * - Dirrmtry gir directoriespav2011-10-182-1/+3 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+2 * Depend on libXau via the USE_XORG framework.kwm2011-04-011-0/+2 * Update to 2.28.3.kwm2011-03-304-6/+25 * Sync to new bsd.autotools.mkade2010-12-041-1/+1 * Update to 2.28.2.marcus2010-11-272-6/+4 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * Presenting GNOME 2.30.1 for FreeBSD. The offical release notes for thiskwm2010-05-114-14/+42 * Fix some bogus errors in the FreeBSD backend, and remove all compiler warnings.marcus2009-12-146-15/+47 * Fix inode retrieval in FreeBSD 8.0+.marcus2009-12-142-0/+26 * Presenting GNOME 2.28.1 for FreeBSD. The official release notes for thismarcus2009-11-293-5/+29 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * Presenting GNOME 2.26.1 for FreeBSD.kwm2009-04-243-24/+9 * Fix an issue with accessing a bad memory address in my previous patch.marcus2009-04-142-3/+3 * Add support for per-CPU utilization stats.marcus2009-04-122-0/+67 * Presenting GNOME 2.26 for FreeBSD. Seemarcus2009-04-103-5/+8 * Update to 2.24.4.mezz2009-01-202-4/+4 * Update to 2.24.3.marcus2009-01-134-18571/+25 * Presenting GNOME 2.24 for FreeBSD.marcus2009-01-1017-954/+694 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-061-6/+2 * Fix a patch problem that only showed up when libgtop was patched on amarcus2008-12-071-13/+0 * Switch libgtop to use kinfo_getfile() to get open file and cwd information.marcus2008-12-076-16/+18731 * Fix the build on recent -CURRENT.marcus2008-08-031-3/+21 * Update to 2.22.3.mezz2008-07-012-5/+4 * - Unbreak on CURRENT after change in cdev structurepav2008-06-231-0/+18 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-06