hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
u-boot/include/android_avb/avb_ops_user.h
....@@ -63,6 +63,22 @@
6363 /* Frees an AvbOps instance previously allocated with avb_ops_device_new(). */
6464 void avb_ops_user_free(AvbOps* ops);
6565
66
+struct preloaded_partition {
67
+ uint8_t *addr;
68
+ size_t size; // 0 means the partition hasn't yet been preloaded
69
+};
70
+
71
+struct AvbOpsData {
72
+ struct AvbOps *ops;
73
+ const char *iface;
74
+ const char *devnum;
75
+ const char *slot_suffix;
76
+ struct preloaded_partition boot;
77
+ struct preloaded_partition vendor_boot;
78
+ struct preloaded_partition init_boot;
79
+ struct preloaded_partition resource;
80
+};
81
+
6682 #ifdef __cplusplus
6783 }
6884 #endif