aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-medium.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2003-08-27 02:16:51 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-08-27 02:16:51 +0800
commit04b9ec51d45f2efb3b8118eef99c7592ba269792 (patch)
tree2ed61b2ef50a2f74fcc4911b1145367514d721e7 /camel/camel-medium.h
parent173fc4ff4c7f267cefeeeed0a7a93a7f1f245c62 (diff)
downloadgsoc2013-evolution-04b9ec51d45f2efb3b8118eef99c7592ba269792.tar.gz
gsoc2013-evolution-04b9ec51d45f2efb3b8118eef99c7592ba269792.tar.zst
gsoc2013-evolution-04b9ec51d45f2efb3b8118eef99c7592ba269792.zip
temporarily reverting my camel namespace patches until after we merge in some of the other branches
svn path=/trunk/; revision=22373
Diffstat (limited to 'camel/camel-medium.h')
-rw-r--r--camel/camel-medium.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/camel/camel-medium.h b/camel/camel-medium.h
index 7b01eae39f..26040b2a94 100644
--- a/camel/camel-medium.h
+++ b/camel/camel-medium.h
@@ -31,7 +31,7 @@
#ifdef __cplusplus
extern "C" {
#pragma }
-#endif /* __cplusplus */
+#endif /* __cplusplus }*/
#include <camel/camel-data-wrapper.h>
@@ -46,7 +46,8 @@ typedef struct {
const char *value;
} CamelMediumHeader;
-struct _CamelMedium {
+struct _CamelMedium
+{
CamelDataWrapper parent_object;
/* The content of the medium, as opposed to our parent
@@ -54,32 +55,34 @@ struct _CamelMedium {
* content.
*/
CamelDataWrapper *content;
+
};
typedef struct {
CamelDataWrapperClass parent_class;
/* Virtual methods */
- void (*add_header) (CamelMedium *medium, const char *name, const void *value);
- void (*set_header) (CamelMedium *medium, const char *name, const void *value);
- void (*remove_header) (CamelMedium *medium, const char *name);
- const void * (*get_header) (CamelMedium *medium, const char *name);
+ void (*add_header) (CamelMedium *medium, const gchar *header_name, const void *header_value);
+ void (*set_header) (CamelMedium *medium, const gchar *header_name, const void *header_value);
+ void (*remove_header) (CamelMedium *medium, const gchar *header_name);
+ const void * (*get_header) (CamelMedium *medium, const gchar *header_name);
GArray * (*get_headers) (CamelMedium *medium);
void (*free_headers) (CamelMedium *medium, GArray *headers);
CamelDataWrapper * (*get_content_object) (CamelMedium *medium);
void (*set_content_object) (CamelMedium *medium, CamelDataWrapper *content);
+
} CamelMediumClass;
/* Standard Camel function */
CamelType camel_medium_get_type (void);
/* Header get/set interface */
-void camel_medium_add_header (CamelMedium *medium, const char *name, const void *value);
-void camel_medium_set_header (CamelMedium *medium, const char *name, const void *value);
-void camel_medium_remove_header (CamelMedium *medium, const char *name);
-const void *camel_medium_get_header (CamelMedium *medium, const char *name);
+void camel_medium_add_header (CamelMedium *medium, const gchar *header_name, const void *header_value);
+void camel_medium_set_header (CamelMedium *medium, const gchar *header_name, const void *header_value);
+void camel_medium_remove_header (CamelMedium *medium, const gchar *header_name);
+const void *camel_medium_get_header (CamelMedium *medium, const gchar *header_name);
GArray *camel_medium_get_headers (CamelMedium *medium);
void camel_medium_free_headers (CamelMedium *medium, GArray *headers);