libosip  5.3.0
osip_accept_encoding.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_ACCEPT_ENCONDING_H_
21 #define _OSIP_ACCEPT_ENCONDING_H_
22 
23 #include <osipparser2/osip_list.h>
24 
41 
47  char *element;
49 };
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
65 int osip_accept_encoding_parse(osip_accept_encoding_t *header, const char *hvalue);
71 int osip_accept_encoding_to_str(const osip_accept_encoding_t *header, char **dest);
83 
101 #define osip_accept_encoding_param_add(header, name, value) osip_generic_param_add((&(header)->gen_params), name, value)
108 #define osip_accept_encoding_param_get_byname(header, name, dest) osip_generic_param_get_byname((&(header)->gen_params), name, dest)
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
116 #endif
char * osip_accept_encoding_get_element(const osip_accept_encoding_t *header)
Definition: osip_accept_encoding.c:220
void osip_accept_encoding_free(osip_accept_encoding_t *header)
Definition: osip_accept_encoding.c:162
int osip_accept_encoding_clone(const osip_accept_encoding_t *header, osip_accept_encoding_t **dest)
Definition: osip_accept_encoding.c:174
int osip_accept_encoding_parse(osip_accept_encoding_t *header, const char *hvalue)
Definition: osip_accept_encoding.c:82
int osip_accept_encoding_to_str(const osip_accept_encoding_t *header, char **dest)
Definition: osip_accept_encoding.c:113
int osip_accept_encoding_init(osip_accept_encoding_t **header)
Definition: osip_accept_encoding.c:69
void osip_accept_encoding_set_element(osip_accept_encoding_t *header, char *value)
Definition: osip_accept_encoding.c:224
oSIP list Routines
Definition: osip_accept_encoding.h:46
char * element
Definition: osip_accept_encoding.h:47
osip_list_t gen_params
Definition: osip_accept_encoding.h:48
Definition: osip_list.h:87