mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 04:57:06 +03:00
make targets "loadable"
This commit is contained in:
11
components/targets/targets.c
Normal file
11
components/targets/targets.c
Normal file
@@ -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