session-manager: implement 'endpoint' factory

This is modeled after the 'metadata' factory and provides
a way to use the pw_endpoint interface directly to implement
an endpoint object in a client.
This commit is contained in:
George Kiagiadakis 2020-03-24 17:17:24 +02:00 committed by Wim Taymans
parent 0a8ec0380b
commit df66edd9ab
3 changed files with 379 additions and 0 deletions

View file

@ -31,6 +31,9 @@
int client_endpoint_factory_init(struct pw_impl_module *module);
/* client-session.c */
int client_session_factory_init(struct pw_impl_module *module);
int endpoint_factory_init(struct pw_impl_module *module);
/* protocol-native.c */
int pw_protocol_native_ext_session_manager_init(struct pw_context *context);
@ -51,6 +54,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
client_endpoint_factory_init(module);
client_session_factory_init(module);
endpoint_factory_init(module);
pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));