summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-07-04 10:31:08 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-07-04 12:34:18 +0200
commit104f7d87ccc358d48f772969da708b9eba1958bc (patch)
tree74049828f5019adae75ea96cf0e7682fc86f9d04 /src
parentcd68e9fae6097a7938d5ca127b43942a20f2235f (diff)
downloadnitrokey-sys-rs-104f7d87ccc358d48f772969da708b9eba1958bc.tar.gz
nitrokey-sys-rs-104f7d87ccc358d48f772969da708b9eba1958bc.tar.bz2
Mark deprecated functions using the deprecated attribute
nitrokey-sys currently contains two deprecated functions: `NK_status` and `NK_totp_get_time`. This patch adds Rust’s `deprecated` attribute to the functions.
Diffstat (limited to 'src')
-rw-r--r--src/ffi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index d003cf1..a01eae8 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -759,6 +759,7 @@ extern "C" {
/// deprecated in favor of NK_get_status_as_string.
/// @return string representation of the status or an empty string
/// if the command failed
+ #[deprecated(since = "3.5.0", note="use `NK_get_status_as_string` instead")]
pub fn NK_status() -> *mut ::std::os::raw::c_char;
}
extern "C" {
@@ -1013,6 +1014,7 @@ extern "C" {
pub fn NK_totp_set_time_soft(time: u64) -> ::std::os::raw::c_int;
}
extern "C" {
+ #[deprecated(since = "3.4.0", note="use `NK_totp_set_time_soft` instead")]
pub fn NK_totp_get_time() -> ::std::os::raw::c_int;
}
extern "C" {