MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / findSourcePartition

Function findSourcePartition

src/partition_table_model.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70const LauncherPartitionEntry *
71findSourcePartition(const LauncherPartitionTable &table, const LauncherPartitionEntry &target) {
72 const LauncherPartitionEntry *fallback = nullptr;
73 for (const LauncherPartitionEntry &entry : table.entries) {
74 if (!samePartitionIdentity(entry, target)) continue;
75 if (entry.subtype == target.subtype) return &entry;
76 if (!fallback) fallback = &entry;
77 }
78 return fallback;
79}
80
81void setError(String *error, const char *message) {
82 if (error) *error = message;

Callers 1

Calls 1

samePartitionIdentityFunction · 0.85

Tested by

no test coverage detected