private:
shared_ptr<sigrok::OutputFormat> libsigrok_output_format_;
- shared_ptr<sigrok::Device> libsigrok_device_;
+ shared_ptr<sigrok::UserDevice> libsigrok_device_;
shared_ptr<sigrok::Output> libsigrok_output_;
map<string, Glib::VariantBase> options_;
};
output->libsigrok_output_format_ = libsigrok_output_format;
auto context = libsigrok_output_format->parent();
output->libsigrok_device_ = context->create_user_device("Vendor", "Model", "Version");
+ for (int i = 0; i < 8; ++i) {
+ gchar *name = g_strdup_printf("D%d", i);
+ output->libsigrok_device_->add_channel(i, sigrok::ChannelType::LOGIC, name);
+ g_free(name);
+ }
output->options_ = options;
return output;