aboutsummaryrefslogtreecommitdiffstats
path: root/api/wintun.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-04 15:45:27 +0100
committerSimon Rozman <simon@rozman.si>2020-11-04 16:46:24 +0100
commitc26b16e06f1e6e43427056e8107927a6fd94dd2b (patch)
treea3da1cd233ba4e846e2acd3ff47be81841047f96 /api/wintun.h
parentapi: upgrade nci.lib and wintun-inf.h building (diff)
downloadwintun-c26b16e06f1e6e43427056e8107927a6fd94dd2b.tar.xz
wintun-c26b16e06f1e6e43427056e8107927a6fd94dd2b.zip
api: CALLBACK_FUNC -> CALLBACK
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/wintun.h')
-rw-r--r--api/wintun.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/wintun.h b/api/wintun.h
index fc38327..51d2de1 100644
--- a/api/wintun.h
+++ b/api/wintun.h
@@ -89,7 +89,7 @@ typedef _Return_type_success_(return != FALSE)
*
* @return Non-zero to continue iterating adapters; zero to stop.
*/
-typedef BOOL(CALLBACK *WINTUN_ENUM_CALLBACK_FUNC)(_In_ WINTUN_ADAPTER_HANDLE Adapter, _In_ LPARAM Param);
+typedef BOOL(CALLBACK *WINTUN_ENUM_CALLBACK)(_In_ WINTUN_ADAPTER_HANDLE Adapter, _In_ LPARAM Param);
/**
* Enumerates all Wintun adapters.
@@ -106,7 +106,7 @@ typedef BOOL(CALLBACK *WINTUN_ENUM_CALLBACK_FUNC)(_In_ WINTUN_ADAPTER_HANDLE Ada
*/
typedef _Return_type_success_(return != FALSE) BOOL(WINAPI *WINTUN_ENUM_ADAPTERS_FUNC)(
_In_z_ const WCHAR *Pool,
- _In_ WINTUN_ENUM_CALLBACK_FUNC Callback,
+ _In_ WINTUN_ENUM_CALLBACK Callback,
_In_ LPARAM Param);
/**
@@ -205,7 +205,7 @@ typedef enum _WINTUN_LOGGER_LEVEL
*
* @return Anything - return value is ignored.
*/
-typedef BOOL(CALLBACK *WINTUN_LOGGER_CALLBACK_FUNC)(_In_ WINTUN_LOGGER_LEVEL Level, _In_z_ const WCHAR *Message);
+typedef BOOL(CALLBACK *WINTUN_LOGGER_CALLBACK)(_In_ WINTUN_LOGGER_LEVEL Level, _In_z_ const WCHAR *Message);
/**
* Sets logger callback function.
@@ -214,7 +214,7 @@ typedef BOOL(CALLBACK *WINTUN_LOGGER_CALLBACK_FUNC)(_In_ WINTUN_LOGGER_LEVEL Lev
* threads concurrently. Should the logging require serialization, you must handle serialization in
* NewLogger. Set to NULL to disable.
*/
-typedef void(WINAPI *WINTUN_SET_LOGGER_FUNC)(_In_ WINTUN_LOGGER_CALLBACK_FUNC NewLogger);
+typedef void(WINAPI *WINTUN_SET_LOGGER_FUNC)(_In_ WINTUN_LOGGER_CALLBACK NewLogger);
/**
* Minimum ring capacity.