SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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-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_ACCEPT_ENCONDING_H_
22 #define _OSIP_ACCEPT_ENCONDING_H_
23 
24 #include <osipparser2/osip_list.h>
25 
42 
48  {
49  char *element;
51  };
52 
53 
54 #ifdef __cplusplus
55 extern "C"
56 {
57 #endif
58 
69  int osip_accept_encoding_parse (osip_accept_encoding_t * header, const char *hvalue);
75  int osip_accept_encoding_to_str (const osip_accept_encoding_t * header, char **dest);
87  osip_accept_encoding_t ** dest);
88 
95  char *value);
107 #define osip_accept_encoding_param_add(header,name,value) osip_generic_param_add((&(header)->gen_params),name,value)
108 
114 #define osip_accept_encoding_param_get_byname(header,name,dest) osip_generic_param_get_byname((&(header)->gen_params),name,dest)
115 
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
123 #endif
Structure for referencing a list of elements.
Definition: osip_list.h:82
char * element
accept encoding main value
void osip_accept_encoding_free(osip_accept_encoding_t *header)
Free a Accept-Encoding element.
int osip_accept_encoding_clone(const osip_accept_encoding_t *header, osip_accept_encoding_t **dest)
Clone a Accept-Encoding element.
oSIP list Routines
Definition of the Accept-Encoding header.
void osip_accept_encoding_set_element(osip_accept_encoding_t *header, char *value)
Set the value of an Accept-Encoding element.
char * value[96]
Definition: cgiserver.cpp:90
int osip_accept_encoding_to_str(const osip_accept_encoding_t *header, char **dest)
Get a string representation of a Accept-Encoding element.
char * osip_accept_encoding_get_element(const osip_accept_encoding_t *header)
Get the value of an Accept-Encoding element.
int osip_accept_encoding_parse(osip_accept_encoding_t *header, const char *hvalue)
Parse a Accept-Encoding element.
osip_list_t gen_params
accept encoding parameters
int osip_accept_encoding_init(osip_accept_encoding_t **header)
Allocate a Accept-Encoding element.