SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osip_call_info.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2015 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_CALL_INFO_H_
22 #define _OSIP_CALL_INFO_H_
23 
24 #include <osipparser2/osip_list.h>
25 
42 
48  {
49  char *element;
51  };
52 
53 #ifdef __cplusplus
54 extern "C"
55 {
56 #endif
57 
62  int osip_call_info_init (osip_call_info_t ** header);
67  void osip_call_info_free (osip_call_info_t * header);
73  int osip_call_info_parse (osip_call_info_t * header, const char *hvalue);
79  int osip_call_info_to_str (const osip_call_info_t * header, char **dest);
85  int osip_call_info_clone (const osip_call_info_t * header, osip_call_info_t ** dest);
96  void osip_call_info_set_uri (osip_call_info_t * header, char *uri);
97 
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
105 #endif
Structure for referencing a list of elements.
Definition: osip_list.h:82
void osip_call_info_set_uri(osip_call_info_t *header, char *uri)
Set the uri in the Call_Info element.
char * osip_call_info_get_uri(osip_call_info_t *header)
Get the uri from a Call_Info header.
int osip_call_info_init(osip_call_info_t **header)
Allocate a Call-Info element.
osip_list_t gen_params
Parameters for Call-Info header.
int osip_call_info_to_str(const osip_call_info_t *header, char **dest)
Get a string representation of a Call-Info element.
oSIP list Routines
Definition of the Call-Info header.
int osip_call_info_clone(const osip_call_info_t *header, osip_call_info_t **dest)
Clone a Call-Info element.
void osip_call_info_free(osip_call_info_t *header)
Free a Call-Info element.
int osip_call_info_parse(osip_call_info_t *header, const char *hvalue)
Parse a Call-Info element.
char * element
Call-Info main value.