Rework support

Load the mapper from the support plugin
Move the support setup in pw_init
This commit is contained in:
Wim Taymans 2017-06-14 11:48:41 +02:00
parent b9c719ac7e
commit f55f1739e1
18 changed files with 192 additions and 278 deletions

View file

@ -20,6 +20,7 @@
#include <spa/plugin.h>
#include <spa/node.h>
extern const struct spa_handle_factory spa_logger_factory;
extern const struct spa_handle_factory spa_type_map_factory;
int
@ -31,6 +32,9 @@ spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t inde
case 0:
*factory = &spa_type_map_factory;
break;
case 1:
*factory = &spa_logger_factory;
break;
default:
return SPA_RESULT_ENUM_END;
}