diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-13 09:31:17 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-13 09:31:17 +0000 |
commit | 700bf0fd58ef7f3f353c7569deff56c121644263 (patch) | |
tree | 76a0657c58a290dd04438fc7b1a657cef74ba610 /lib/gnutls_extensions.h | |
parent | 7f395ab4b171615e934ac0700f2445f746fdadf5 (diff) | |
download | gnutls-700bf0fd58ef7f3f353c7569deff56c121644263.tar.gz |
Some bugfixes, and type corrections.
Diffstat (limited to 'lib/gnutls_extensions.h')
-rw-r--r-- | lib/gnutls_extensions.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/gnutls_extensions.h b/lib/gnutls_extensions.h index 8a1d564009..3ea42a7739 100644 --- a/lib/gnutls_extensions.h +++ b/lib/gnutls_extensions.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2001 Nikos Mavroyanopoulos + * Copyright (C) 2001,2003 Nikos Mavroyanopoulos * * This file is part of GNUTLS. * @@ -20,15 +20,19 @@ #include <gnutls_int.h> -void* _gnutls_ext_func_send(uint16 type); -void* _gnutls_ext_func_recv(uint16 type); const char *_gnutls_extension_get_name(uint16 type); int _gnutls_parse_extensions( gnutls_session, const opaque*, int); int _gnutls_gen_extensions( gnutls_session session, opaque** data); +typedef int (*ext_recv_func)( gnutls_session, const opaque*, size_t); /* recv data */ +typedef int (*ext_send_func)( gnutls_session, opaque*, size_t); /* send data */ + +ext_send_func _gnutls_ext_func_send(uint16 type); +ext_recv_func _gnutls_ext_func_recv(uint16 type); + typedef struct { const char *name; uint16 type; - int (*gnutls_ext_func_recv)( gnutls_session, const opaque*, size_t); /* recv data */ - int (*gnutls_ext_func_send)( gnutls_session, opaque*, size_t); /* send data */ + ext_recv_func gnutls_ext_func_recv; + ext_send_func gnutls_ext_func_send; } gnutls_extension_entry; |