From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:15:07 +0000
Subject: [PATCH] change system file
---
u-boot/include/android_avb/avb_ops_user.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/u-boot/include/android_avb/avb_ops_user.h b/u-boot/include/android_avb/avb_ops_user.h
index 36a98da..28e807b 100755
--- a/u-boot/include/android_avb/avb_ops_user.h
+++ b/u-boot/include/android_avb/avb_ops_user.h
@@ -63,6 +63,22 @@
/* Frees an AvbOps instance previously allocated with avb_ops_device_new(). */
void avb_ops_user_free(AvbOps* ops);
+struct preloaded_partition {
+ uint8_t *addr;
+ size_t size; // 0 means the partition hasn't yet been preloaded
+};
+
+struct AvbOpsData {
+ struct AvbOps *ops;
+ const char *iface;
+ const char *devnum;
+ const char *slot_suffix;
+ struct preloaded_partition boot;
+ struct preloaded_partition vendor_boot;
+ struct preloaded_partition init_boot;
+ struct preloaded_partition resource;
+};
+
#ifdef __cplusplus
}
#endif
--
Gitblit v1.6.2