2
0

targets.c 275 B

1234567891011
  1. #include "string.h"
  2. #include "targets.h"
  3. const struct target_s *target_set[] = { &target_muse, NULL };
  4. void target_init(char *target) {
  5. for (int i = 0; *target && target_set[i]; i++) if (strcasestr(target_set[i]->model, target)) {
  6. target_set[i]->init();
  7. break;
  8. }
  9. }