diff options
author | arehbein <arehbein@sysmocom.de> | 2023-05-14 21:43:11 +0200 |
---|---|---|
committer | arehbein <arehbein@sysmocom.de> | 2023-05-19 12:50:24 +0200 |
commit | 0c374c68a1f77e95de3043577c7b6058dcf23026 (patch) | |
tree | 2dbe50eaf766c3e8f98d67564c1311c6fe3da081 /include/osmocom/core | |
parent | 03590fcee432344d68911ba432c92506b70d1dee (diff) |
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
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/osmo_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |