00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _OSIP_CONTACT_H_
00022 #define _OSIP_CONTACT_H_
00023
00024 #include <osipparser2/headers/osip_from.h>
00025
00041 typedef osip_from_t osip_contact_t;
00042
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047
00048 #ifndef MINISIZE
00049
00053 int osip_contact_init (osip_contact_t ** header);
00058 void osip_contact_free (osip_contact_t * header);
00059 #endif
00060
00065 int osip_contact_parse (osip_contact_t * header, const char *hvalue);
00071 int osip_contact_to_str (const osip_contact_t * header, char **dest);
00072 #ifndef MINISIZE
00073
00078 int osip_contact_clone (const osip_contact_t * header, osip_contact_t ** dest);
00079 #else
00080 #define osip_contact_init osip_from_init
00081 #define osip_contact_free osip_from_free
00082 #define osip_contact_clone osip_from_clone
00083 #endif
00084
00088 #define osip_contact_get_displayname(header) osip_from_get_displayname((osip_from_t*)header)
00089
00094 #define osip_contact_set_displayname(header,value) osip_from_set_displayname((osip_from_t*)header, value)
00095
00099 #define osip_contact_get_url(header) osip_from_get_url((osip_from_t*)header)
00100
00105 #define osip_contact_set_url(header,url) osip_from_set_url((osip_from_t*)header,url)
00106
00112 #define osip_contact_param_get(header,pos,dest) osip_from_param_get((osip_from_t*)header,pos,dest)
00113
00119 #define osip_contact_param_add(header,name, value) osip_generic_param_add((&(header)->gen_params), name,value)
00120
00126 #define osip_contact_param_get_byname(header,name,dest) osip_generic_param_get_byname((&(header)->gen_params),name,dest)
00127
00128
00129 #ifdef __cplusplus
00130 }
00131 #endif
00132
00135 #endif