gnutls_extensions.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation
00003  *
00004  * Author: Nikos Mavrogiannopoulos
00005  *
00006  * This file is part of GNUTLS.
00007  *
00008  * The GNUTLS library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00021  * USA
00022  *
00023  */
00024 
00025 #include <gnutls_int.h>
00026 
00027 const char *MHD_gtls_extension_get_name (uint16_t type);
00028 int MHD_gtls_parse_extensions (MHD_gtls_session_t, MHD_gtls_ext_parse_type_t,
00029                                const opaque *, int);
00030 int MHD_gtls_gen_extensions (MHD_gtls_session_t session, opaque * data,
00031                              size_t data_size);
00032 
00033 typedef int (*MHD_gtls_ext_recv_func) (MHD_gtls_session_t, const opaque *, size_t);     /* recv data */
00034 typedef int (*MHD_gtls_ext_send_func) (MHD_gtls_session_t, opaque *, size_t);   /* send data */
00035 
00036 MHD_gtls_ext_send_func MHD_gtls_ext_func_send (uint16_t type);
00037 MHD_gtls_ext_recv_func MHD_gtls_ext_func_recv (uint16_t type,
00038                                                MHD_gtls_ext_parse_type_t);
00039 
00040 typedef struct
00041 {
00042   const char *name;
00043   uint16_t type;
00044   MHD_gtls_ext_parse_type_t parse_type;
00045   MHD_gtls_ext_recv_func MHD_gnutls_ext_func_recv;
00046   MHD_gtls_ext_send_func MHD_gnutls_ext_func_send;
00047 } MHD_gtls_extension_entry;

Generated on Fri Feb 27 18:18:40 2009 for GNU libmicrohttpd by  doxygen 1.5.8