diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-08-26 05:01:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-08-26 05:01:55 +0800 |
commit | e74d9ca1cc1bd40982341aa85600fbc0b4f31824 (patch) | |
tree | f247f13df83c3440be8cf03592e1a2c233d16a54 /camel/camel-medium.c | |
parent | 0357dde828171cb027545ca577a57a39f23b37f0 (diff) | |
download | gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.tar gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.tar.gz gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.tar.bz2 gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.tar.lz gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.tar.xz gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.tar.zst gsoc2013-evolution-e74d9ca1cc1bd40982341aa85600fbc0b4f31824.zip |
Namespaced.
2003-08-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.[c,h]: Namespaced.
* camel-data-wrapper.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-digest-folder.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-filter-driver.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-filter-search.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-folder-search.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-folder-summary.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-http-stream.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-http-stream.h: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-internet-address.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-medium.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-message.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-parser.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-part-utils.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-mime-part.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-movemail.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-multipart-encrypted.c: updated for namespace changed made
to camel-mime-utils.[c,h]
* camel-multipart-signed.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-multipart.c: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-search-private.[c,h]: updated for namespace changed made to
camel-mime-utils.[c,h]
* camel-types.h: updated for namespace changed made to
camel-mime-utils.[c,h]
* providers/imap/camel-imap-folder.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/imap/camel-imap-store-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/imap/camel-imap-utils.c: updated for namespace changed
made to camel-mime-utils.[c,h]
* providers/imapp/camel-imapp-utils.[c,h]: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-local-summary.[c,h]: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-maildir-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-mbox-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/local/camel-spool-summary.h: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/nntp/camel-nntp-summary.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/nntp/camel-nntp-utils.c: updated for namespace changed
made to camel-mime-utils.[c,h]
* providers/pop3/camel-pop3-folder.c: updated for namespace
changed made to camel-mime-utils.[c,h]
* providers/sendmail/camel-sendmail-transport.c: updated for
namespace changed made to camel-mime-utils.[c,h]
* providers/smtp/camel-smtp-transport.c: updated for namespace
changed made to camel-mime-utils.[c,h]
svn path=/trunk/; revision=22355
Diffstat (limited to 'camel/camel-medium.c')
-rw-r--r-- | camel/camel-medium.c | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/camel/camel-medium.c b/camel/camel-medium.c index 5699a29ee6..b3964f29e3 100644 --- a/camel/camel-medium.c +++ b/camel/camel-medium.c @@ -40,11 +40,11 @@ static CamelDataWrapperClass *parent_class = NULL; #define CM_CLASS(so) CAMEL_MEDIUM_CLASS (CAMEL_OBJECT_GET_CLASS(so)) static gboolean is_offline (CamelDataWrapper *data_wrapper); -static void add_header (CamelMedium *medium, const gchar *header_name, - const void *header_value); -static void set_header (CamelMedium *medium, const gchar *header_name, const void *header_value); -static void remove_header (CamelMedium *medium, const gchar *header_name); -static const void *get_header (CamelMedium *medium, const gchar *header_name); +static void add_header (CamelMedium *medium, const char *name, + const void *value); +static void set_header (CamelMedium *medium, const char *name, const void *value); +static void remove_header (CamelMedium *medium, const char *name); +static const void *get_header (CamelMedium *medium, const char *name); static GArray *get_headers (CamelMedium *medium); static void free_headers (CamelMedium *medium, GArray *headers); @@ -121,17 +121,16 @@ is_offline (CamelDataWrapper *data_wrapper) } static void -add_header (CamelMedium *medium, const gchar *header_name, - const void *header_value) +add_header (CamelMedium *medium, const char *name, const void *value) { - g_warning("No %s::add_header implemented, adding %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), header_name); + g_warning("No %s::add_header implemented, adding %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), name); } /** * camel_medium_add_header: * @medium: a CamelMedium - * @header_name: name of the header - * @header_value: value of the header + * @name: name of the header + * @value: value of the header * * Adds a header to a medium. * @@ -140,78 +139,78 @@ add_header (CamelMedium *medium, const gchar *header_name, * headers. No we dont, order isn't important! Z **/ void -camel_medium_add_header (CamelMedium *medium, const gchar *header_name, const void *header_value) +camel_medium_add_header (CamelMedium *medium, const char *name, const void *value) { g_return_if_fail (CAMEL_IS_MEDIUM (medium)); - g_return_if_fail (header_name != NULL); - g_return_if_fail (header_value != NULL); + g_return_if_fail (name != NULL); + g_return_if_fail (value != NULL); - CM_CLASS (medium)->add_header(medium, header_name, header_value); + CM_CLASS (medium)->add_header(medium, name, value); } static void -set_header (CamelMedium *medium, const char *header_name, const void *header_value) +set_header (CamelMedium *medium, const char *name, const void *value) { - g_warning("No %s::set_header implemented, setting %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), header_name); + g_warning("No %s::set_header implemented, setting %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), name); } /** * camel_medium_set_header: * @medium: a CamelMedium - * @header_name: name of the header - * @header_value: value of the header + * @name: name of the header + * @value: value of the header * * Sets the value of a header. Any other occurances of the header * will be removed. Setting a %NULL header can be used to remove * the header also. **/ void -camel_medium_set_header (CamelMedium *medium, const char *header_name, const void *header_value) +camel_medium_set_header (CamelMedium *medium, const char *name, const void *value) { g_return_if_fail (CAMEL_IS_MEDIUM (medium)); - g_return_if_fail (header_name != NULL); + g_return_if_fail (name != NULL); - if (header_value == NULL) - CM_CLASS(medium)->remove_header(medium, header_name); + if (value == NULL) + CM_CLASS(medium)->remove_header(medium, name); else - CM_CLASS(medium)->set_header(medium, header_name, header_value); + CM_CLASS(medium)->set_header(medium, name, value); } static void -remove_header(CamelMedium *medium, const char *header_name) +remove_header(CamelMedium *medium, const char *name) { - g_warning("No %s::remove_header implemented, removing %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), header_name); + g_warning("No %s::remove_header implemented, removing %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), name); } /** * camel_medium_remove_header: * @medium: a medium - * @header_name: the name of the header + * @name: the name of the header * * Removes the named header from the medium. All occurances of the * header are removed. **/ void -camel_medium_remove_header(CamelMedium *medium, const char *header_name) +camel_medium_remove_header(CamelMedium *medium, const char *name) { g_return_if_fail (CAMEL_IS_MEDIUM (medium)); - g_return_if_fail (header_name != NULL); + g_return_if_fail (name != NULL); - CM_CLASS(medium)->remove_header(medium, header_name); + CM_CLASS(medium)->remove_header(medium, name); } static const void * -get_header(CamelMedium *medium, const char *header_name) +get_header(CamelMedium *medium, const char *name) { - g_warning("No %s::get_header implemented, getting %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), header_name); + g_warning("No %s::get_header implemented, getting %s", camel_type_to_name(CAMEL_OBJECT_GET_TYPE(medium)), name); return NULL; } /** * camel_medium_get_header: * @medium: a medium - * @header_name: the name of the header + * @name: the name of the header * * Returns the value of the named header in the medium, or %NULL if * it is unset. The caller should not modify or free the data. @@ -223,12 +222,12 @@ get_header(CamelMedium *medium, const char *header_name) * Return value: the value of the named header, or %NULL **/ const void * -camel_medium_get_header(CamelMedium *medium, const char *header_name) +camel_medium_get_header(CamelMedium *medium, const char *name) { g_return_val_if_fail (CAMEL_IS_MEDIUM (medium), NULL); - g_return_val_if_fail (header_name != NULL, NULL); + g_return_val_if_fail (name != NULL, NULL); - return CM_CLASS (medium)->get_header (medium, header_name); + return CM_CLASS (medium)->get_header (medium, name); } |