libosip  5.3.0
osip_content_length.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_CONTENT_LENGTH_H_
21 #define _OSIP_CONTENT_LENGTH_H_
22 
39 
45  char *value;
46 };
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
67 int osip_content_length_parse(osip_content_length_t *header, const char *hvalue);
73 int osip_content_length_to_str(const osip_content_length_t *header, char **dest);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
87 #endif
int osip_content_length_parse(osip_content_length_t *header, const char *hvalue)
Definition: osip_content_length.c:66
int osip_content_length_init(osip_content_length_t **header)
Definition: osip_content_length.c:26
int osip_content_length_to_str(const osip_content_length_t *header, char **dest)
Definition: osip_content_length.c:98
void osip_content_length_free(osip_content_length_t *header)
Definition: osip_content_length.c:112
int osip_content_length_clone(const osip_content_length_t *header, osip_content_length_t **dest)
Definition: osip_content_length.c:120
Definition: osip_content_length.h:44
char * value
Definition: osip_content_length.h:45