1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

[FL-3315] Desktop,Rpc: desktop status subscription (#2696)

* Desktop,Rpc: desktop status subscription
* Desktop,RPC: properly handle unsubscribe

Co-authored-by: Sergey Gavrilov <who.just.the.doctor@gmail.com>
This commit is contained in:
あく
2023-05-25 23:22:31 +09:00
committed by GitHub
parent 88f0b63577
commit 080324f7e0
5 changed files with 88 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <furi.h>
typedef struct Desktop Desktop;
#define RECORD_DESKTOP "desktop"
@@ -7,3 +9,9 @@ typedef struct Desktop Desktop;
bool desktop_api_is_locked(Desktop* instance);
void desktop_api_unlock(Desktop* instance);
typedef struct {
bool locked;
} DesktopStatus;
FuriPubSub* desktop_api_get_status_pubsub(Desktop* instance);