mirror of https://gerrit.osmocom.org/simtrace2
migrate from BSC_FD_* to OSMO_FD_*
Change-Id: I01c834537e18eacdd1658f88a4b4a6d4690d87a6
This commit is contained in:
parent
3907085239
commit
a124c1714e
|
@ -88,7 +88,7 @@ static void usb_in_xfer_cb(struct libusb_transfer *xfer)
|
||||||
libusb_submit_transfer(xfer);
|
libusb_submit_transfer(xfer);
|
||||||
} else if (xfer->endpoint == g_buf_out.ep) {
|
} else if (xfer->endpoint == g_buf_out.ep) {
|
||||||
/* re-enable reading from the UDP side */
|
/* re-enable reading from the UDP side */
|
||||||
g_udp_ofd.when |= BSC_FD_READ;
|
g_udp_ofd.when |= OSMO_FD_READ;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -131,9 +131,9 @@ static void libusb_fd_added_cb(int fd, short events, void *user_data)
|
||||||
ofd->fd = fd;
|
ofd->fd = fd;
|
||||||
ofd->cb = &ofd_libusb_cb;
|
ofd->cb = &ofd_libusb_cb;
|
||||||
if (events & POLLIN)
|
if (events & POLLIN)
|
||||||
ofd->when |= BSC_FD_READ;
|
ofd->when |= OSMO_FD_READ;
|
||||||
if (events & POLLOUT)
|
if (events & POLLOUT)
|
||||||
ofd->when |= BSC_FD_WRITE;
|
ofd->when |= OSMO_FD_WRITE;
|
||||||
|
|
||||||
osmo_fd_register(ofd);
|
osmo_fd_register(ofd);
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ static int ofd_udp_cb(struct osmo_fd *ofd, unsigned int what)
|
||||||
g_buf_out.xfer->length = rc;
|
g_buf_out.xfer->length = rc;
|
||||||
|
|
||||||
/* disable further READ interest for the UDP socket */
|
/* disable further READ interest for the UDP socket */
|
||||||
ofd->when &= ~BSC_FD_READ;
|
ofd->when &= ~OSMO_FD_READ;
|
||||||
|
|
||||||
/* submit the URB on the OUT end point */
|
/* submit the URB on the OUT end point */
|
||||||
libusb_submit_transfer(g_buf_out.xfer);
|
libusb_submit_transfer(g_buf_out.xfer);
|
||||||
|
|
Loading…
Reference in New Issue