libosip  5.3.0
osip_header.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2020 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 #ifndef _OSIP_HEADER_H_
21 #define _OSIP_HEADER_H_
22 
23 #include <osipparser2/osip_uri.h>
24 
45 typedef struct osip_header osip_header_t;
46 
51 struct osip_header {
52  char *hname;
53  char *hvalue;
54 };
55 
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
73 int osip_header_init(osip_header_t **header);
78 void osip_header_free(osip_header_t *header);
84 int osip_header_to_str(const osip_header_t *header, char **dest);
89 char *osip_header_get_name(const osip_header_t *header);
95 void osip_header_set_name(osip_header_t *header, char *pname);
100 char *osip_header_get_value(const osip_header_t *header);
106 void osip_header_set_value(osip_header_t *header, char *pvalue);
112 int osip_header_clone(const osip_header_t *header, osip_header_t **dest);
113 
114 #ifdef __cplusplus
115 }
116 #endif
117 
120 #endif
int osip_header_to_str(const osip_header_t *header, char **dest)
Definition: osip_header.c:236
void osip_header_set_name(osip_header_t *header, char *pname)
Definition: osip_header.c:274
void osip_header_set_value(osip_header_t *header, char *pvalue)
Definition: osip_header.c:285
int osip_header_clone(const osip_header_t *header, osip_header_t **dest)
Definition: osip_header.c:289
char * osip_header_get_value(const osip_header_t *header)
Definition: osip_header.c:278
void osip_header_free(osip_header_t *header)
Definition: osip_header.c:221
osip_uri_param_t osip_generic_param_t
Definition: osip_header.h:63
int osip_header_init(osip_header_t **header)
Definition: osip_header.c:210
char * osip_header_get_name(const osip_header_t *header)
Definition: osip_header.c:267
oSIP url parser Routines
Definition: osip_header.h:51
char * hname
Definition: osip_header.h:52
char * hvalue
Definition: osip_header.h:53
Definition: osip_uri.h:55