infrared_remote.h 1.2 KB

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <stdbool.h>
  3. #include "infrared_remote_button.h"
  4. typedef struct InfraredRemote InfraredRemote;
  5. InfraredRemote* infrared_remote_alloc();
  6. void infrared_remote_free(InfraredRemote* remote);
  7. void infrared_remote_reset(InfraredRemote* remote);
  8. void infrared_remote_set_name(InfraredRemote* remote, const char* name);
  9. const char* infrared_remote_get_name(InfraredRemote* remote);
  10. void infrared_remote_set_path(InfraredRemote* remote, const char* path);
  11. const char* infrared_remote_get_path(InfraredRemote* remote);
  12. size_t infrared_remote_get_button_count(InfraredRemote* remote);
  13. InfraredRemoteButton* infrared_remote_get_button(InfraredRemote* remote, size_t index);
  14. bool infrared_remote_find_button_by_name(InfraredRemote* remote, const char* name, size_t* index);
  15. bool infrared_remote_add_button(InfraredRemote* remote, const char* name, InfraredSignal* signal);
  16. bool infrared_remote_rename_button(InfraredRemote* remote, const char* new_name, size_t index);
  17. bool infrared_remote_delete_button(InfraredRemote* remote, size_t index);
  18. bool infrared_remote_store(InfraredRemote* remote);
  19. bool infrared_remote_load(InfraredRemote* remote, FuriString* path);
  20. bool infrared_remote_remove(InfraredRemote* remote);