summaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-07-07 20:57:14 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-07-07 20:57:14 +0200
commit17ba7cbbfd6ea5c92d5a5df460751c599e65c9f3 (patch)
treee9bc2db40d17b72e63980e77746120931950ce4b /NK_C_API.h
parent09eaadc5d3d2a13a094210eedafee023774914c6 (diff)
downloadlibnitrokey-17ba7cbbfd6ea5c92d5a5df460751c599e65c9f3.tar.gz
libnitrokey-17ba7cbbfd6ea5c92d5a5df460751c599e65c9f3.tar.bz2
Add general DEPRECATED macro for marking deprecated functions.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r--NK_C_API.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 34d8733..84c8296 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -25,6 +25,8 @@
#include <stdbool.h>
#include <stdint.h>
+#include "deprecated.h"
+
#ifdef _MSC_VER
#define NK_C_API __declspec(dllexport)
#else
@@ -418,6 +420,7 @@ extern "C" {
NK_C_API int NK_totp_set_time_soft(uint64_t time);
// NK_totp_get_time is deprecated -- use NK_totp_set_time_soft instead
+ DEPRECATED
NK_C_API int NK_totp_get_time();
//passwords