pulse-server: calculate event mask from facility and type

Make `client_queue_subscribe_event()` take the facility and type
separately, and calculate the mask itself, so that the caller
does not need to be concerned with that.
This commit is contained in:
Barnabás Pőcze 2024-06-28 01:39:25 +02:00
parent e3a7035e8f
commit 27b76ae686
6 changed files with 115 additions and 65 deletions

View file

@ -106,8 +106,8 @@ int module_unload(struct module *module)
if (module->loaded)
broadcast_subscribe_event(impl,
SUBSCRIPTION_MASK_MODULE,
SUBSCRIPTION_EVENT_REMOVE | SUBSCRIPTION_EVENT_MODULE,
SUBSCRIPTION_EVENT_MODULE,
SUBSCRIPTION_EVENT_REMOVE,
module->index);
module_free(module);