mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-05-22 13:07:45 +01:00
make targets "loadable"
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "string.h"
|
||||
#include "targets.h"
|
||||
|
||||
const struct target_s *target_set[] = { &target_muse, NULL };
|
||||
|
||||
void target_init(char *target) {
|
||||
for (int i = 0; target_set[i]; i++) if (strcasestr(target_set[i]->model, target)) {
|
||||
target_set[i]->init();
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user