From b2f35949dec2251aeb162324864292cdd7596c9b Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 28 Jan 2019 12:00:51 +0100 Subject: Replace NK_status with NK_get_status_as_string For naming consistency, this patch adds the NK_get_status_as_string function to replace NK_status and marks NK_status as deprecated. --- NK_C_API.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'NK_C_API.h') diff --git a/NK_C_API.h b/NK_C_API.h index c59beb4..79d80c0 100644 --- a/NK_C_API.h +++ b/NK_C_API.h @@ -353,11 +353,21 @@ extern "C" { NK_C_API enum NK_device_model NK_get_device_model(); /** - * Return the debug status string. Debug purposes. - * @return command processing error code + * Return the debug status string. Debug purposes. This function is + * deprecated in favor of NK_get_status_as_string. + * @return string representation of the status or an empty string + * if the command failed */ + DEPRECATED NK_C_API char * NK_status(); + /** + * Return the debug status string. Debug purposes. + * @return string representation of the status or an empty string + * if the command failed + */ + NK_C_API char * NK_get_status_as_string(); + /** * Get the stick status common to all Nitrokey devices and return the * command processing error code. If the code is zero, i. e. the -- cgit v1.2.1