Commit 688b26a
committed
uefi: protocols: cleanup test_protocol[_by_guid]()
The majority of our protocol-related public functions use a generic
approach with `<P: ProtocolPointer + ?Sized>`. Unfortunately:
- we are inconsistent with that
- this hinders some use-cases where the GUID is only known at
runtime
Therefore, this is the first commit of a series of commits that
improves the situation by providing base functions that use the
generic-based API and `by_guid` counterparts for more runtime-
flexibility.1 parent 78162c0 commit 688b26a
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1146 | 1154 | | |
1147 | 1155 | | |
1148 | 1156 | | |
| |||
1152 | 1160 | | |
1153 | 1161 | | |
1154 | 1162 | | |
1155 | | - | |
| 1163 | + | |
1156 | 1164 | | |
1157 | 1165 | | |
1158 | 1166 | | |
| |||
0 commit comments