libosip
5.3.0
include
osipparser2
headers
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
63
typedef
osip_uri_param_t
osip_generic_param_t
;
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
osip_header_to_str
int osip_header_to_str(const osip_header_t *header, char **dest)
Definition:
osip_header.c:236
osip_header_set_name
void osip_header_set_name(osip_header_t *header, char *pname)
Definition:
osip_header.c:274
osip_header_set_value
void osip_header_set_value(osip_header_t *header, char *pvalue)
Definition:
osip_header.c:285
osip_header_clone
int osip_header_clone(const osip_header_t *header, osip_header_t **dest)
Definition:
osip_header.c:289
osip_header_get_value
char * osip_header_get_value(const osip_header_t *header)
Definition:
osip_header.c:278
osip_header_free
void osip_header_free(osip_header_t *header)
Definition:
osip_header.c:221
osip_generic_param_t
osip_uri_param_t osip_generic_param_t
Definition:
osip_header.h:63
osip_header_init
int osip_header_init(osip_header_t **header)
Definition:
osip_header.c:210
osip_header_get_name
char * osip_header_get_name(const osip_header_t *header)
Definition:
osip_header.c:267
osip_uri.h
oSIP url parser Routines
osip_header
Definition:
osip_header.h:51
osip_header::hname
char * hname
Definition:
osip_header.h:52
osip_header::hvalue
char * hvalue
Definition:
osip_header.h:53
osip_uri_param
Definition:
osip_uri.h:55
Generated on Sun Feb 27 2022 11:19:30 for libosip by
1.9.1