diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 15:54:43 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 18:05:15 +0200 |
commit | cf7110f02f793c791b7227bf1579eaaa81d3fd30 (patch) | |
tree | ef57c33ee67c015885402ce9bde62f695541b92e /NK_C_API.h | |
parent | 84f8f634584e22a557bf50f077fb15967311908d (diff) | |
download | libnitrokey-cf7110f02f793c791b7227bf1579eaaa81d3fd30.tar.gz libnitrokey-cf7110f02f793c791b7227bf1579eaaa81d3fd30.tar.bz2 |
Add DEBUG_L1 level and set it as default for Python tests
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -14,11 +14,17 @@ extern "C" { #endif /** * Set debug level of messages written on stderr - * @param state state=True - all messages, state=False - only errors level + * @param state state=True - most messages, state=False - only errors level */ NK_C_API void NK_set_debug(bool state); /** + * Set debug level of messages written on stderr + * @param level (int) 0-lowest verbosity, 5-highest verbosity + */ + NK_C_API void NK_set_debug_level(const int level); + + /** * Connect to device of given model. Currently library can be connected only to one device at once. * @param device_model char 'S': Nitrokey Storage, 'P': Nitrokey Pro * @return 1 if connected, 0 if wrong model or cannot connect |