aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-12-28 23:53:24 +0100
committerRobin Krahl <robin.krahl@ireas.org>2020-01-07 11:33:21 +0100
commitbcad061ed3e7777547c1b6fc9223dd65f752d94e (patch)
treec2e621cfc3e1970e693f5b53e5c876fe81e86351 /src/lib.rs
parent6b439950c3c856f1b0eb6df2c9e89387b1697608 (diff)
downloadnitrokey-rs-bcad061ed3e7777547c1b6fc9223dd65f752d94e.tar.gz
nitrokey-rs-bcad061ed3e7777547c1b6fc9223dd65f752d94e.tar.bz2
Add the DeviceInfo struct
In the next patch, we will add support for the NK_list_devices functions that returns a list of NK_device_info structs with information about the connected devices. This patch introduces the DeviceInfo struct that holds the information returned by NK_list_devices and that can be created from a NK_device_info struct.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0eb4f40..dad4a20 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -118,8 +118,8 @@ use nitrokey_sys;
pub use crate::auth::{Admin, Authenticate, User};
pub use crate::config::Config;
pub use crate::device::{
- Device, DeviceWrapper, Model, Pro, SdCardData, Storage, StorageProductionInfo, StorageStatus,
- VolumeMode, VolumeStatus,
+ Device, DeviceInfo, DeviceWrapper, Model, Pro, SdCardData, Storage, StorageProductionInfo,
+ StorageStatus, VolumeMode, VolumeStatus,
};
pub use crate::error::{CommandError, CommunicationError, Error, LibraryError};
pub use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData};