api: allow wintun.h use in C++

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-10-24 23:25:26 +02:00 committed by Jason A. Donenfeld
parent bf4eabb4ca
commit fbb9098393

View File

@ -8,6 +8,10 @@
#include <Windows.h>
#include <IPExport.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef _Return_type_success_(return == ERROR_SUCCESS) DWORD WINTUN_STATUS;
/**
@ -334,3 +338,7 @@ WINTUN_STATUS(WINAPI *WINTUN_RECEIVE_PACKETS_FUNC)
* ERROR_SUCCESS All packets were sent successfully.
*/
WINTUN_STATUS(WINAPI *WINTUN_SEND_PACKETS_FUNC)(_In_ WINTUN_SESSION_HANDLE Session, _In_ const WINTUN_PACKET *Queue);
#ifdef __cplusplus
}
#endif