mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 11:13:09 +00:00
b9a766d909
* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <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, string_t path);
|
|
bool infrared_remote_remove(InfraredRemote* remote);
|