libosip  4.1.0
osip_record_route.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2012 Aymeric MOIZARD amoizard@antisip.com
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 
21 #ifndef _OSIP_RECORD_ROUTE_H_
22 #define _OSIP_RECORD_ROUTE_H_
23 
25 
42 
43 #ifdef __cplusplus
44 extern "C"
45 {
46 #endif
47 
48 #ifndef MINISIZE
49 
64  int osip_record_route_parse (osip_record_route_t * header, const char *hvalue);
70  int osip_record_route_to_str (const osip_record_route_t * header, char **dest);
76 #define osip_record_route_clone osip_from_clone
77 #else
78  #define osip_record_route_init osip_from_init
79  #define osip_record_route_free osip_from_free
80  #define osip_record_route_parse osip_from_parse
81  #define osip_record_route_to_str osip_from_to_str
82  #define osip_record_route_clone osip_from_clone
83 #endif
84 
89 #define osip_record_route_set_url(header,url) osip_from_set_url((osip_from_t*)header,url)
90 
94 #define osip_record_route_get_url(header) osip_from_get_url((osip_from_t*)header)
95 
101 #define osip_record_route_param_get(header,pos,dest) osip_from_param_get((osip_from_t*)header,pos,dest)
102 
108 #define osip_record_route_param_add(header,name,value) osip_generic_param_add((&(header)->gen_params),name,value)
109 
115 #define osip_record_route_param_get_byname(header,name,dest) osip_generic_param_get_byname((&(header)->gen_params),name,dest)
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
123 #endif