Files
U2FDevice/Streams.hpp
Michael Kuc 48840ad36c Added resumable loading, along with signal handling.
This version can store state after receiving SIGINT.
This is achieved by polling FIFO read state;
2018-08-09 20:23:23 +00:00

12 lines
350 B
C++

#pragma once
#include <cstdio>
#include <memory>
std::shared_ptr<int> getHostDescriptor();
std::shared_ptr<FILE> getComHostStream();
std::shared_ptr<FILE> getHostPacketStream();
std::shared_ptr<FILE> getHostAPDUStream();
std::shared_ptr<FILE> getComDevStream();
std::shared_ptr<FILE> getDevPacketStream();
std::shared_ptr<FILE> getDevAPDUStream();