Skip to content

Commit

Permalink
Merge pull request #528 from nomis52/libusb
Browse files Browse the repository at this point in the history
Refactor the libusb plugin so we can use asynchronous I/O
  • Loading branch information
nomis52 committed Nov 29, 2014
2 parents 2835b1d + a0d6480 commit a81dc3e
Show file tree
Hide file tree
Showing 27 changed files with 43 additions and 1,866 deletions.
5 changes: 5 additions & 0 deletions common/utils/DmxBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ void DmxBuffer::Get(uint8_t *data, unsigned int *length) const {

void DmxBuffer::GetRange(unsigned int slot, uint8_t *data,
unsigned int *length) const {
if (slot >= m_length) {
*length = 0;
return;
}

if (m_data) {
*length = min(*length, m_length - slot);
memcpy(data, m_data + slot, *length);
Expand Down
80 changes: 0 additions & 80 deletions plugins/usbdmx/AnymaDevice.cpp

This file was deleted.

57 changes: 0 additions & 57 deletions plugins/usbdmx/AnymaDevice.h

This file was deleted.

145 changes: 0 additions & 145 deletions plugins/usbdmx/AnymaOutputPort.cpp

This file was deleted.

71 changes: 0 additions & 71 deletions plugins/usbdmx/AnymaOutputPort.h

This file was deleted.

Loading

0 comments on commit a81dc3e

Please sign in to comment.