factory: add events

Add events to the factory and use the destroy event to clean up.
This commit is contained in:
Wim Taymans 2017-11-14 10:59:10 +01:00
parent 52e1dad93e
commit 157a8b6ddf
4 changed files with 80 additions and 6 deletions

View file

@ -381,6 +381,8 @@ struct pw_factory {
struct pw_factory_info info; /**< introspectable factory info */
struct pw_properties *properties; /**< properties of the factory */
struct spa_hook_list listener_list; /**< event listeners */
const struct pw_factory_implementation *implementation;
void *implementation_data;