diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-02 16:04:33 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-02 16:38:56 +0100 |
commit | c20e1683c21a1e281479f3caca1754b39820cd81 (patch) | |
tree | 742b13d4dd864676704559e05637f9487f260799 /api/session.h | |
parent | api: statically compile devpkey constants (diff) | |
download | wintun-c20e1683c21a1e281479f3caca1754b39820cd81.tar.xz wintun-c20e1683c21a1e281479f3caca1754b39820cd81.zip |
api: separate read-wait handle into other function
Makes the API a bit more clear.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/session.h')
-rw-r--r-- | api/session.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/api/session.h b/api/session.h index 735b927..6813ef3 100644 --- a/api/session.h +++ b/api/session.h @@ -17,8 +17,7 @@ WINTUN_STATUS WINAPI WintunStartSession( _In_ const WINTUN_ADAPTER *Adapter, _In_ DWORD Capacity, - _Out_ TUN_SESSION **Session, - _Out_ HANDLE *ReadWait); + _Out_ TUN_SESSION **Session); /** * @copydoc WINTUN_END_SESSION_FUNC @@ -27,6 +26,12 @@ void WINAPI WintunEndSession(_In_ TUN_SESSION *Session); /** + * @copydoc WINTUN_GET_READ_WAIT_EVENT_FUNC + */ +HANDLE WINAPI +WintunGetReadWaitEvent(_In_ TUN_SESSION *Session); + +/** * @copydoc WINTUN_RECEIVE_PACKET_FUNC */ WINTUN_STATUS WINAPI |