From 0c374c68a1f77e95de3043577c7b6058dcf23026 Mon Sep 17 00:00:00 2001 From: arehbein Date: Sun, 14 May 2023 21:43:11 +0200 Subject: core: Add function to update osmo_io_ops field for osmo_io_fd Added, because the field 'io_ops' of 'struct osmo_io_fd' is not a reference, so subsequent changes to the osmo_io_ops structure that was used to set it up aren't automatically reflected in the osmo_io_fd structure that got its copy. Change-Id: Ie45402ad8e86e3cecf75ad78a512c17e61e68b19 --- include/osmocom/core/osmo_io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/osmo_io.h b/include/osmocom/core/osmo_io.h index ffc8cfa5..c19ca678 100644 --- a/include/osmocom/core/osmo_io.h +++ b/include/osmocom/core/osmo_io.h @@ -88,3 +88,5 @@ void osmo_iofd_set_priv_nr(struct osmo_io_fd *iofd, unsigned int priv_nr); int osmo_iofd_get_fd(const struct osmo_io_fd *iofd); const char *osmo_iofd_get_name(const struct osmo_io_fd *iofd); + +void osmo_iofd_set_ioops(struct osmo_io_fd *iofd, const struct osmo_io_ops *ioops); -- cgit v1.2.3