From 3b0e017c7c87cb93d48e4384d3ef312ba93d9875 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 24 Jan 2019 16:01:21 +0100 Subject: Export PWS slot count in C API The C++ API already defines the number of slots in device_proto.h. This patch adds it to the C API. It is especially important to have this constant in the C API as it is the length of the array returned by NK_get_password_safe_slot_status. --- NK_C_API.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NK_C_API.h') diff --git a/NK_C_API.h b/NK_C_API.h index 3effbfe..0ff317c 100644 --- a/NK_C_API.h +++ b/NK_C_API.h @@ -37,6 +37,11 @@ extern "C" { #endif + /** + * The number of slots in the password safe. + */ + extern const uint8_t NK_PWS_SLOT_COUNT; + static const int MAXIMUM_STR_REPLY_LENGTH = 8192; /** -- cgit v1.2.1