mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 19:36:36 +03:00
4a1695ba1c
* RPC App control commands * Button release timeout * SubGhz tx fix Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
25 lines
511 B
C
25 lines
511 B
C
#pragma once
|
|
#include "rpc.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
RpcAppEventSessionClose,
|
|
RpcAppEventAppExit,
|
|
RpcAppEventLoadFile,
|
|
RpcAppEventButtonPress,
|
|
RpcAppEventButtonRelease,
|
|
} RpcAppSystemEvent;
|
|
|
|
typedef bool (*RpcAppSystemCallback)(RpcAppSystemEvent event, const char* arg, void* context);
|
|
|
|
typedef struct RpcAppSystem RpcAppSystem;
|
|
|
|
void rpc_system_app_set_callback(RpcAppSystem* rpc_app, RpcAppSystemCallback callback, void* ctx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|