.. | .. |
---|
63 | 63 | /* Frees an AvbOps instance previously allocated with avb_ops_device_new(). */
|
---|
64 | 64 | void avb_ops_user_free(AvbOps* ops);
|
---|
65 | 65 |
|
---|
| 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 | +
|
---|
66 | 82 | #ifdef __cplusplus
|
---|
67 | 83 | }
|
---|
68 | 84 | #endif
|
---|