Commit fa956ce
authored
Add and Leverage Linux Connectivity Callback Introspection, Mutation, and Action Delegation Methods (project-chip#43062)
* Rename 'mpScanCallback' to 'mpOneShotScanCallback'.
This more accurately reflects its set-scan-and-clear usage.
* Documentation: Document the 'mpOneShotScanCallback' data member.
* Rename 'mpConnectCallback' to 'mpOneShotConnectCallback'.
This more accurately reflects its set-connect-and-clear usage.
* Documentation: Document the 'mpOneShotConnectCallback' data member.
* Added network commissioning-related action delegation methods.
These three methods consolidate the handling and dispatch of scan,
connect, and network status change action delegation callback
invocation and, for scan and connect, post-invocation nullification.
* Add parallel setters for all scan, connect, and status change callbacks.
This not only makes it easier to keep callback members private as
implementations fan out from the current, single wpa_supplicant
implementation but also reduces duplication among those
implementations for common callback-related operations.
* Initialize callbacks in the explicit initializer only.
Previously, the status change callback was initialized with a default
initializer and the connect and scan callbacks were initialized in the
explicit initializer.
With this change, all three are now initialized in the explicit
initializer.
* Added two connect- and scan-related callback introspection methods.
* Leverage callback introspection, mutation, and action delegation methods.1 parent 045f879 commit fa956ce
3 files changed
Lines changed: 123 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
66 | 85 | | |
67 | 86 | | |
68 | 87 | | |
| |||
82 | 101 | | |
83 | 102 | | |
84 | 103 | | |
85 | | - | |
86 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
87 | 107 | | |
88 | 108 | | |
89 | 109 | | |
| |||
128 | 148 | | |
129 | 149 | | |
130 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
131 | 163 | | |
132 | 164 | | |
133 | 165 | | |
| |||
179 | 211 | | |
180 | 212 | | |
181 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
182 | 244 | | |
183 | 245 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
259 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
260 | 273 | | |
261 | 274 | | |
262 | 275 | | |
| |||
287 | 300 | | |
288 | 301 | | |
289 | 302 | | |
290 | | - | |
291 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
292 | 324 | | |
293 | 325 | | |
294 | 326 | | |
| |||
Lines changed: 19 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
| 260 | + | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
| 265 | + | |
| 266 | + | |
268 | 267 | | |
269 | 268 | | |
270 | 269 | | |
| |||
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 352 | + | |
| 353 | + | |
360 | 354 | | |
361 | 355 | | |
362 | 356 | | |
| |||
384 | 378 | | |
385 | 379 | | |
386 | 380 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 381 | + | |
392 | 382 | | |
393 | 383 | | |
394 | 384 | | |
| |||
875 | 865 | | |
876 | 866 | | |
877 | 867 | | |
878 | | - | |
| 868 | + | |
879 | 869 | | |
880 | 870 | | |
881 | 871 | | |
| |||
893 | 883 | | |
894 | 884 | | |
895 | 885 | | |
896 | | - | |
| 886 | + | |
897 | 887 | | |
898 | 888 | | |
899 | 889 | | |
| |||
948 | 938 | | |
949 | 939 | | |
950 | 940 | | |
951 | | - | |
| 941 | + | |
952 | 942 | | |
953 | 943 | | |
954 | 944 | | |
| |||
1269 | 1259 | | |
1270 | 1260 | | |
1271 | 1261 | | |
1272 | | - | |
| 1262 | + | |
1273 | 1263 | | |
1274 | 1264 | | |
1275 | 1265 | | |
| |||
1282 | 1272 | | |
1283 | 1273 | | |
1284 | 1274 | | |
1285 | | - | |
| 1275 | + | |
1286 | 1276 | | |
1287 | 1277 | | |
1288 | 1278 | | |
1289 | | - | |
| 1279 | + | |
1290 | 1280 | | |
1291 | 1281 | | |
1292 | 1282 | | |
| |||
1570 | 1560 | | |
1571 | 1561 | | |
1572 | 1562 | | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
| 1563 | + | |
| 1564 | + | |
1580 | 1565 | | |
1581 | 1566 | | |
1582 | 1567 | | |
| |||
1597 | 1582 | | |
1598 | 1583 | | |
1599 | 1584 | | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1606 | 1588 | | |
1607 | 1589 | | |
1608 | 1590 | | |
| |||
0 commit comments