mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
4bf29827f8
* Quicksave 1 * Header stage complete * Source stage complete * Lint & merge fixes * Includes * Documentation step 1 * FBT: output free size considering BT STACK * Documentation step 2 * py lint * Fix music player plugin * unit test stage 1: string allocator, mem, getters, setters, appends, compare, search. * unit test: string equality * unit test: string replace * unit test: string start_with, end_with * unit test: string trim * unit test: utf-8 * Rename * Revert fw_size changes * Simplify CLI backspace handling * Simplify CLI character insert * Merge fixes * Furi: correct filenaming and spelling * Bt: remove furi string include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
29 lines
1.2 KiB
C
29 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "infrared_remote_button.h"
|
|
|
|
typedef struct InfraredRemote InfraredRemote;
|
|
|
|
InfraredRemote* infrared_remote_alloc();
|
|
void infrared_remote_free(InfraredRemote* remote);
|
|
void infrared_remote_reset(InfraredRemote* remote);
|
|
|
|
void infrared_remote_set_name(InfraredRemote* remote, const char* name);
|
|
const char* infrared_remote_get_name(InfraredRemote* remote);
|
|
|
|
void infrared_remote_set_path(InfraredRemote* remote, const char* path);
|
|
const char* infrared_remote_get_path(InfraredRemote* remote);
|
|
|
|
size_t infrared_remote_get_button_count(InfraredRemote* remote);
|
|
InfraredRemoteButton* infrared_remote_get_button(InfraredRemote* remote, size_t index);
|
|
bool infrared_remote_find_button_by_name(InfraredRemote* remote, const char* name, size_t* index);
|
|
|
|
bool infrared_remote_add_button(InfraredRemote* remote, const char* name, InfraredSignal* signal);
|
|
bool infrared_remote_rename_button(InfraredRemote* remote, const char* new_name, size_t index);
|
|
bool infrared_remote_delete_button(InfraredRemote* remote, size_t index);
|
|
|
|
bool infrared_remote_store(InfraredRemote* remote);
|
|
bool infrared_remote_load(InfraredRemote* remote, FuriString* path);
|
|
bool infrared_remote_remove(InfraredRemote* remote);
|