aboutsummaryrefslogtreecommitdiff
path: root/include/fastboot-internal.h
diff options
context:
space:
mode:
authorIon Agorria2024-01-05 09:22:07 +0200
committerMattijs Korpershoek2024-01-09 14:58:33 +0100
commit475aa9aabee7ab472341d755cc339f1345d5f49e (patch)
tree6a979bb795adb476341e7bd00505aa657fd5e36e /include/fastboot-internal.h
parent85fcd69dc2c03025648a1b1b511c1f10abf87c1e (diff)
fastboot: implement "getvar all"
This commit implements "fastboot getvar all" listing by iterating the existing dispatchers that don't require parameters (as we pass NULL), uses fastboot multiresponse. Signed-off-by: Ion Agorria <ion@agorria.com> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/20240105072212.6615-3-clamor95@gmail.com Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'include/fastboot-internal.h')
-rw-r--r--include/fastboot-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fastboot-internal.h b/include/fastboot-internal.h
index bf2f2b3c891..610d4f91414 100644
--- a/include/fastboot-internal.h
+++ b/include/fastboot-internal.h
@@ -19,6 +19,13 @@ extern u32 fastboot_buf_size;
extern void (*fastboot_progress_callback)(const char *msg);
/**
+ * fastboot_getvar_all() - Writes current variable being listed from "all" to response.
+ *
+ * @response: Pointer to fastboot response buffer
+ */
+void fastboot_getvar_all(char *response);
+
+/**
* fastboot_getvar() - Writes variable indicated by cmd_parameter to response.
*
* @cmd_parameter: Pointer to command parameter