[SECUR32]
[reactos.git] / reactos / dll / win32 / schannel / msvc_typeof_hack.h
1
2 #pragma once
3
4 #define typeof(_X) __typeof_ ## _X
5
6 typedef gnutls_alert_description_t (__cdecl typeof(gnutls_alert_get))(gnutls_session_t session);
7 typedef const char* (__cdecl typeof(gnutls_alert_get_name))(gnutls_alert_description_t alert);
8 typedef void (__cdecl typeof(gnutls_certificate_free_credentials))(gnutls_certificate_credentials_t sc);
9 typedef int (__cdecl typeof(gnutls_certificate_allocate_credentials))(gnutls_certificate_credentials_t
10 * res);
11 typedef const gnutls_datum_t* (__cdecl typeof(gnutls_certificate_get_peers))(gnutls_session_t
12 session, unsigned int
13 *list_size);
14 typedef gnutls_cipher_algorithm_t (__cdecl typeof(gnutls_cipher_get))(gnutls_session_t session);
15 typedef size_t (__cdecl typeof(gnutls_cipher_get_key_size))(gnutls_cipher_algorithm_t algorithm);
16 typedef int (__cdecl typeof(gnutls_credentials_set))(gnutls_session_t session,
17 gnutls_credentials_type_t type, void *cred);
18 typedef void (__cdecl typeof(gnutls_deinit))(gnutls_session_t session);
19 typedef int (__cdecl typeof(gnutls_global_init))(void);
20 typedef void (__cdecl typeof(gnutls_global_deinit))(void);
21 typedef void (__cdecl typeof(gnutls_global_set_log_function))(gnutls_log_func log_func);
22 typedef void (__cdecl typeof(gnutls_global_set_log_level))(int level);
23 typedef int (__cdecl typeof(gnutls_handshake))(gnutls_session_t session);
24 typedef int (__cdecl typeof(gnutls_init))(gnutls_session_t * session, unsigned int flags);
25 typedef gnutls_kx_algorithm_t (__cdecl typeof(gnutls_kx_get))(gnutls_session_t session);
26 typedef gnutls_mac_algorithm_t (__cdecl typeof(gnutls_mac_get))(gnutls_session_t session);
27 typedef size_t (__cdecl typeof(gnutls_mac_get_key_size))(gnutls_mac_algorithm_t algorithm);
28 typedef void (__cdecl typeof(gnutls_perror))(int error);
29 typedef gnutls_protocol_t (__cdecl typeof(gnutls_protocol_get_version))(gnutls_session_t session);
30 typedef int (__cdecl typeof(gnutls_priority_set_direct))(gnutls_session_t session,
31 const char *priorities,
32 const char **err_pos);
33 typedef size_t (__cdecl typeof(gnutls_record_get_max_size))(gnutls_session_t session);
34 typedef ssize_t (__cdecl typeof(gnutls_record_recv))(gnutls_session_t session, void *data,
35 size_t data_size);
36 typedef ssize_t (__cdecl typeof(gnutls_record_send))(gnutls_session_t session, const void *data,
37 size_t data_size);
38 typedef int (__cdecl typeof(gnutls_server_name_set))(gnutls_session_t session,
39 gnutls_server_name_type_t type,
40 const void *name, size_t name_length);
41 typedef gnutls_transport_ptr_t (__cdecl typeof(gnutls_transport_get_ptr))(gnutls_session_t session);
42 typedef void (__cdecl typeof(gnutls_transport_set_errno))(gnutls_session_t session, int err);
43 typedef void (__cdecl typeof(gnutls_transport_set_ptr))(gnutls_session_t session,
44 gnutls_transport_ptr_t ptr);
45 typedef void (__cdecl typeof(gnutls_transport_set_push_function))(gnutls_session_t session,
46 gnutls_push_func push_func);
47 typedef void (__cdecl typeof(gnutls_transport_set_pull_function))(gnutls_session_t session,
48 gnutls_pull_func pull_func);