aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-12 05:10:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-12 05:10:52 +0800
commit1606416242b22845f60d49ca4a705e6d6c29cde4 (patch)
tree695d4803e23175f249e2e4d80c58c46e6251f9f5 /camel/camel-mime-utils.c
parentb36050fc2782c8509cbde81192486ddb2c66e38d (diff)
downloadgsoc2013-evolution-1606416242b22845f60d49ca4a705e6d6c29cde4.tar.gz
gsoc2013-evolution-1606416242b22845f60d49ca4a705e6d6c29cde4.tar.zst
gsoc2013-evolution-1606416242b22845f60d49ca4a705e6d6c29cde4.zip
Ripped out my code since it was never being used since the mime parser is
2001-07-11 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): Ripped out my code since it was never being used since the mime parser is not using a seekable stream (ever?) which pretty much means my code needs to be done someplace else. svn path=/trunk/; revision=11016
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index bf166faa4b..b87824e862 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1905,7 +1905,7 @@ header_decode_rfc2184_param (const char **in, char **paramp, int *part, gboolean
}
static int
-header_decode_param(const char **in, char **paramp, char **valuep, int *is_rfc2184_param)
+header_decode_param (const char **in, char **paramp, char **valuep, int *is_rfc2184_param)
{
gboolean is_rfc2184_encoded = FALSE;
gboolean is_rfc2184 = FALSE;
@@ -1970,9 +1970,9 @@ header_decode_param(const char **in, char **paramp, char **valuep, int *is_rfc21
}
char *
-header_param(struct _header_param *p, const char *name)
+header_param (struct _header_param *p, const char *name)
{
- while (p && strcasecmp(p->name, name) != 0)
+ while (p && g_strcasecmp (p->name, name) != 0)
p = p->next;
if (p)
return p->value;
@@ -1980,7 +1980,7 @@ header_param(struct _header_param *p, const char *name)
}
struct _header_param *
-header_set_param(struct _header_param **l, const char *name, const char *value)
+header_set_param (struct _header_param **l, const char *name, const char *value)
{
struct _header_param *p = (struct _header_param *)l, *pn;
@@ -1989,12 +1989,12 @@ header_set_param(struct _header_param **l, const char *name, const char *value)
if (!g_strcasecmp (pn->name, name)) {
g_free (pn->value);
if (value) {
- pn->value = g_strdup(value);
+ pn->value = g_strdup (value);
return pn;
} else {
p->next = pn->next;
g_free (pn->name);
- g_free(pn);
+ g_free (pn);
return NULL;
}
}
@@ -2004,26 +2004,27 @@ header_set_param(struct _header_param **l, const char *name, const char *value)
if (value == NULL)
return NULL;
- pn = g_malloc(sizeof(*pn));
+ pn = g_malloc (sizeof (*pn));
pn->next = 0;
- pn->name = g_strdup(name);
- pn->value = g_strdup(value);
+ pn->name = g_strdup (name);
+ pn->value = g_strdup (value);
p->next = pn;
return pn;
}
const char *
-header_content_type_param(struct _header_content_type *t, const char *name)
+header_content_type_param (struct _header_content_type *t, const char *name)
{
if (t==NULL)
return NULL;
- return header_param(t->params, name);
+ return header_param (t->params, name);
}
-void header_content_type_set_param(struct _header_content_type *t, const char *name, const char *value)
+void
+header_content_type_set_param (struct _header_content_type *t, const char *name, const char *value)
{
- header_set_param(&t->params, name, value);
+ header_set_param (&t->params, name, value);
}
/**