[systemd-devel] sd-event: sd_event_source_set_io_handler()

Lennart Poettering mzerqung at 0pointer.de
Mon Aug 7 11:41:35 UTC 2023


On Sa, 29.07.23 13:39, Donald Buczek (buczek at molgen.mpg.de) wrote:

> Hi, experts,
>
> is there a fundamental reason, why sd-event doesn't provide
> functions to update the handler of an existing event source, e.g.
>
>     int sd_event_source_set_io_handler(sd_event_source *source, sd_event_io_handler_t handler);
>
> and similar for the other event types?

Noone needed this so far. Usually people track states in enums, not by
replacing function pointers...

I see no reason to not add support for this. If this is important to
you, please submit a PR adding this.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list