00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _OSIP_RECORD_H_
00022 #define _OSIP_RECORD_H_
00023
00024 #include <osipparser2/headers/osip_from.h>
00025
00041 typedef osip_from_t osip_route_t;
00042
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047
00048 #ifdef __VXWORKS_OS__
00049
00050 int osip_route_init2 (osip_route_t ** header);
00051 #else
00052
00056 int osip_route_init (osip_route_t ** header);
00057 #endif
00058
00062 void osip_route_free (osip_route_t * header);
00068 int osip_route_parse (osip_route_t * header, const char *hvalue);
00074 int osip_route_to_str (const osip_route_t * header, char **dest);
00080 #define osip_route_clone(header,dest) osip_from_clone(header,dest)
00081
00086 #define osip_route_set_url(header,url) osip_from_set_url((osip_from_t*)header,url)
00087
00091 #define osip_route_get_url(header) osip_from_get_url((osip_from_t*)header)
00092
00098 #define osip_route_param_get(header,pos,dest) osip_from_param_get((osip_from_t*)header,pos,dest)
00099
00105 #define osip_route_param_add(header,name,value) osip_generic_param_add((header)->gen_params,name,value)
00106
00112 #define osip_route_param_get_byname(header,name,dest) osip_generic_param_get_byname((header)->gen_params,name,dest)
00113
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117
00120 #endif