diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-24 23:25:26 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:51:01 +0100 |
commit | fbb90983934800baaec8aa6e9b39b79b1e8b5d0d (patch) | |
tree | 7c8bb25328a9bca89dd4dad861a358306fa060d1 /api/wintun.h | |
parent | api: switch to private heap (diff) | |
download | wintun-fbb90983934800baaec8aa6e9b39b79b1e8b5d0d.tar.xz wintun-fbb90983934800baaec8aa6e9b39b79b1e8b5d0d.zip |
api: allow wintun.h use in C++
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/wintun.h')
-rw-r--r-- | api/wintun.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/wintun.h b/api/wintun.h index 1ee089d..d2fbb40 100644 --- a/api/wintun.h +++ b/api/wintun.h @@ -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 |