const std::string &file_name,
std::shared_ptr<sigrok::InputFormat> format,
const std::map<std::string, Glib::VariantBase> &options) :
+ File(file_name),
context_(context),
input_(format->create_input(options)),
- file_name_(file_name),
interrupt_(false) {
if (!input_)
throw QString("Failed to create input");
}
-void InputFile::create() {
+void InputFile::open() {
+ if (session_)
+ close();
+
session_ = context_->create_session();
}
+void InputFile::close() {
+ if (session_)
+ session_->remove_devices();
+}
+
void InputFile::start() {
}