29 #ifndef _CMIME_ADDRESS_H
30 #define _CMIME_ADDRESS_H
46 typedef enum _CMimeAddressType {
122 #define cmime_address_get_name(ca) (ca->name)
128 #define cmime_address_get_email(ca) (ca->email)
134 #define cmime_address_get_type(ca) (ca->type)
char * email
Definition: cmime_address.h:59
char * name
Definition: cmime_address.h:58
CMimeAddress_T * cmime_address_parse_string(const char *s)
Parse given string and create CMimeAddress_T object.
Definition: cmime_address.c:85
Definition: cmime_address.h:49
Represents an email address.
Definition: cmime_address.h:57
void cmime_address_free(CMimeAddress_T *ca)
Free a CMimeAddress_T object.
Definition: cmime_address.c:115
CMimeAddress_T * cmime_address_new(void)
Creates a new CMimeAddress_T object.
Definition: cmime_address.c:30
CMimeAddressType_T
Possible types of email addresses.
Definition: cmime_address.h:46
Definition: cmime_address.h:50
Definition: cmime_address.h:47
void cmime_address_set_type(CMimeAddress_T *ca, CMimeAddressType_T t)
Set the address type of CMimeAdress_T object.
Definition: cmime_address.c:78
void cmime_address_set_name(CMimeAddress_T *ca, const char *name)
Set the display name of CMimeAdresse_T object.
Definition: cmime_address.c:40
void cmime_address_set_email(CMimeAddress_T *ca, const char *email)
Set the email address of CMimeAdress_T object.
Definition: cmime_address.c:51
Definition: cmime_address.h:48
char * cmime_address_to_string(CMimeAddress_T *ca)
Allocates a string containing the contents of the CMimeAddress_T object.
Definition: cmime_address.c:62
CMimeAddressType_T type
Definition: cmime_address.h:60
int parsed
Definition: cmime_address.h:61