core: add method to add and find spa factory libraries

Make a method to add a mapping between a factory name regex
and the library it is in.
Add a method to find the library for a given factory name.
This commit is contained in:
Wim Taymans 2019-05-31 14:58:59 +02:00
parent 80488dba4a
commit b9d9042695
3 changed files with 60 additions and 0 deletions

View file

@ -235,6 +235,7 @@ struct pw_core {
struct spa_support support[16]; /**< support for spa plugins */
uint32_t n_support; /**< number of support items */
struct pw_array factory_lib; /**< mapping of factory_name regexp to library */
struct pw_client *current_client; /**< client currently executing code in mainloop */