Device::Device(struct sr_dev_inst *structure) :
Configurable(structure->driver, structure, NULL),
- StructureWrapper<Context, struct sr_dev_inst>(structure)
+ structure(structure)
{
for (GSList *entry = structure->channels; entry; entry = entry->next)
{
}
HardwareDevice::HardwareDevice(Driver *driver, struct sr_dev_inst *structure) :
+ StructureWrapper(structure),
Device(structure),
driver(driver)
{
}
return static_pointer_cast<InputDevice>(
- device->get_shared_pointer(context->shared_from_this()));
+ device->get_shared_pointer(shared_from_this()));
}
void Input::send(string data)
check(sr_input_free(structure));
}
-InputDevice::InputDevice(shared_ptr<Input> input, struct sr_dev_inst *sdi) :
- Device(sdi),
+InputDevice::InputDevice(shared_ptr<Input> input,
+ struct sr_dev_inst *structure) :
+ StructureWrapper(structure),
+ Device(structure),
input(input)
{
}