Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

osip_header.h

Go to the documentation of this file.
00001 /*
00002   The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
00003   Copyright (C) 2001,2002,2003,2004,2005  Aymeric MOIZARD jack@atosc.org
00004   
00005   This library is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU Lesser General Public
00007   License as published by the Free Software Foundation; either
00008   version 2.1 of the License, or (at your option) any later version.
00009   
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Lesser General Public License for more details.
00014   
00015   You should have received a copy of the GNU Lesser General Public
00016   License along with this library; if not, write to the Free Software
00017   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00020 
00021 #ifndef _OSIP_HEADER_H_
00022 #define _OSIP_HEADER_H_
00023 
00024 #include <osipparser2/osip_uri.h>
00025 
00046   typedef struct osip_header osip_header_t;
00047 
00052   struct osip_header
00053   {
00054     char *hname;     
00055     char *hvalue;    
00056   };
00057 
00065   typedef osip_uri_param_t osip_generic_param_t;
00066 
00067 #ifdef __cplusplus
00068 extern "C"
00069 {
00070 #endif
00071 
00076   int osip_header_init (osip_header_t ** header);
00081   void osip_header_free (osip_header_t * header);
00087   int osip_header_to_str (const osip_header_t * header, char **dest);
00092   char *osip_header_get_name (const osip_header_t * header);
00098   void osip_header_set_name (osip_header_t * header, char *pname);
00103   char *osip_header_get_value (const osip_header_t * header);
00109   void osip_header_set_value (osip_header_t * header, char *pvalue);
00115   int osip_header_clone (const osip_header_t * header, osip_header_t ** dest);
00116 
00117 
00118 #ifdef __cplusplus
00119 }
00120 #endif
00121 
00124 #endif

Generated on Tue Feb 22 00:59:47 2005 for libosip by  doxygen 1.4.1