xremote_ir_remote.h 690 B

12345678910111213141516171819202122
  1. #pragma once
  2. //#include "../../xremote_i.h"
  3. #include <stdbool.h>
  4. #include <stddef.h>
  5. #include <stdlib.h>
  6. #include <m-array.h>
  7. #include <toolbox/path.h>
  8. #include <storage/storage.h>
  9. #include <core/common_defines.h>
  10. #include "xremote_ir_remote_button.h"
  11. typedef struct InfraredRemote InfraredRemote;
  12. InfraredRemote* xremote_ir_remote_alloc();
  13. void xremote_ir_remote_free(InfraredRemote* remote);
  14. const char* xremote_ir_remote_get_name(InfraredRemote* remote);
  15. bool xremote_ir_remote_load(InfraredRemote* remote, FuriString* path);
  16. size_t xremote_ir_remote_get_button_count(InfraredRemote* remote);
  17. InfraredRemoteButton* xremote_ir_remote_get_button(InfraredRemote* remote, size_t index);