This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/simtrace2/+/20764 ) Change subject: migrate to osmo_fd_{read,write}_{enable,disable}() ...................................................................... migrate to osmo_fd_{read,write}_{enable,disable}() Depends: libosmocore.git Change-Id Idb89ba7bc7c129a6304a76900d17f47daf54d17d Change-Id: I3b2fd3b494e2f02148d685544874f3f3d058e947 --- M host/src/usb2udp.c 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/64/20764/1 diff --git a/host/src/usb2udp.c b/host/src/usb2udp.c index 2c07a3a..6085871 100644 --- a/host/src/usb2udp.c +++ b/host/src/usb2udp.c @@ -88,7 +88,7 @@ libusb_submit_transfer(xfer); } else if (xfer->endpoint == g_buf_out.ep) { /* re-enable reading from the UDP side */ - g_udp_ofd.when |= OSMO_FD_READ; + osmo_fd_read_enable(&g_udp_ofd); } break; default: @@ -131,9 +131,9 @@ ofd->fd = fd; ofd->cb = &ofd_libusb_cb; if (events & POLLIN) - ofd->when |= OSMO_FD_READ; + osmo_fd_read_enable(ofd); if (events & POLLOUT) - ofd->when |= OSMO_FD_WRITE; + osmo_fd_write_enable(ofd); osmo_fd_register(ofd); } @@ -171,7 +171,7 @@ g_buf_out.xfer->length = rc; /* disable further READ interest for the UDP socket */ - ofd->when &= ~OSMO_FD_READ; + osmo_fd_read_disable(ofd); /* submit the URB on the OUT end point */ libusb_submit_transfer(g_buf_out.xfer); -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/20764 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I3b2fd3b494e2f02148d685544874f3f3d058e947 Gerrit-Change-Number: 20764 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201019/f429acf1/attachment.htm>