Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/flipperzero-protobuf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Prosvetova <anna@prosvetova.me>2021-11-11 16:57:23 +0300
committerGitHub <noreply@github.com>2021-11-11 16:57:23 +0300
commit6be7def6087c4d277386381ff2792fa622933668 (patch)
tree7f5f5c62fb474924549a0b8aadf5e2329b113c37
parent0e6d374ab1a12f95a3cd04444376a261e7252db4 (diff)
Add start/stop requests for Virtual Display (#13)
* Add start/stop requests for Virtual Display * Add virtual display errors
-rw-r--r--flipper.proto8
-rw-r--r--gui.options4
-rw-r--r--gui.proto14
3 files changed, 19 insertions, 7 deletions
diff --git a/flipper.proto b/flipper.proto
index f234290..a831031 100644
--- a/flipper.proto
+++ b/flipper.proto
@@ -33,6 +33,10 @@ enum CommandStatus {
/**< Application Errors */
ERROR_APP_CANT_START = 16; /**< Can't start app - internal error */
ERROR_APP_SYSTEM_LOCKED = 17; /**< Another app is running */
+
+ /**< Virtual Display Errors */
+ ERROR_VIRTUAL_DISPLAY_ALREADY_STARTED = 19; /**< Virtual Display session can't be started twice */
+ ERROR_VIRTUAL_DISPLAY_NOT_STARTED = 20; /**< Virtual Display session can't be stopped when it's not started */
}
/* There are Server commands (e.g. Storage_write), which have no body message
@@ -70,8 +74,10 @@ message Main {
.PB_App.LockStatusResponse app_lock_status_response = 18;
.PB_Gui.StartScreenStreamRequest gui_start_screen_stream_request = 20;
.PB_Gui.StopScreenStreamRequest gui_stop_screen_stream_request = 21;
- .PB_Gui.ScreenStreamFrame gui_screen_stream_frame = 22;
+ .PB_Gui.ScreenFrame gui_screen_frame = 22;
.PB_Gui.SendInputEventRequest gui_send_input_event_request = 23;
+ .PB_Gui.StartVirtualDisplayRequest gui_start_virtual_display_request = 26;
+ .PB_Gui.StopVirtualDisplayRequest gui_stop_virtual_display_request = 27;
}
}
diff --git a/gui.options b/gui.options
index 5bf1f1a..a5efc3e 100644
--- a/gui.options
+++ b/gui.options
@@ -1,2 +1,2 @@
-PB_Gui.ScreenStreamFrame.data type:FT_POINTER
-PB_Gui.ScreenStreamFrame.data max_size:1024 \ No newline at end of file
+PB_Gui.ScreenFrame.data type:FT_POINTER
+PB_Gui.ScreenFrame.data max_size:1024 \ No newline at end of file
diff --git a/gui.proto b/gui.proto
index c9de902..070d521 100644
--- a/gui.proto
+++ b/gui.proto
@@ -20,17 +20,23 @@ enum InputType {
REPEAT = 4; /**< Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
}
-message StartScreenStreamRequest {
+message ScreenFrame {
+ bytes data = 1;
}
-message StopScreenStreamRequest {
+message StartScreenStreamRequest {
}
-message ScreenStreamFrame {
- bytes data = 1;
+message StopScreenStreamRequest {
}
message SendInputEventRequest {
InputKey key = 1;
InputType type = 2;
+}
+
+message StartVirtualDisplayRequest {
+}
+
+message StopVirtualDisplayRequest {
} \ No newline at end of file