I’m using sd-bus to develop the dbus part for fcitx5, because I’d like to seamlessly support kdbus in the future. (Don’t argue with me about bsd or sth else right now, for now I don’t care about that.)But one api of sd-bus obviously blows up my mind.https://github.com/systemd/systemd/blob/09541e49ebd17b41482e447dd8194942f39788c0/src/systemd/sd-bus.h#L428typedefint(*sd_bus_track_handler_t) (sd_bus_track *track,void*userdata);intsd_bus_track_new(sd_bus *bus, sd_bus_track **track,sd_bus_track_handler_thandler,void*userdata);So basically, it’s a wrapper around NameOwn
...
继续阅读
(77)