aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-04 18:23:47 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-04 21:22:47 +0100
commitfc27d8ccd2440f7ff1ce08b11bec432a9c922b72 (patch)
treecae2cfc263412f39fdc38921b655181bc9e5a984
parentapi: remove enum name for logger level (diff)
downloadwintun-fc27d8ccd2440f7ff1ce08b11bec432a9c922b72.tar.xz
wintun-fc27d8ccd2440f7ff1ce08b11bec432a9c922b72.zip
api: document log enum
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--api/wintun.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/api/wintun.h b/api/wintun.h
index f957fac..54c27cd 100644
--- a/api/wintun.h
+++ b/api/wintun.h
@@ -189,11 +189,14 @@ typedef _Return_type_success_(return != FALSE)
*/
typedef DWORD(WINAPI *WINTUN_GET_RUNNING_DRIVER_VERSION_FUNC)(void);
+/**
+ * Determines the level of logging, passed to WINTUN_LOGGER_CALLBACK.
+ */
typedef enum
{
- WINTUN_LOG_INFO = 0,
- WINTUN_LOG_WARN,
- WINTUN_LOG_ERR
+ WINTUN_LOG_INFO, /**< Informational */
+ WINTUN_LOG_WARN, /**< Warning */
+ WINTUN_LOG_ERR /**< Error */
} WINTUN_LOGGER_LEVEL;
/**