mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:37:34 +00:00
Kernel: Add NetworkingManagement::try_for_each() for fallible iteration
This API will allow users to short circuit iteration and properly propagate errors.
This commit is contained in:
parent
da5d678f2a
commit
74ab8ccde0
2 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,7 @@ public:
|
|||
NetworkingManagement();
|
||||
|
||||
void for_each(Function<void(NetworkAdapter&)>);
|
||||
ErrorOr<void> try_for_each(Function<ErrorOr<void>(NetworkAdapter&)>);
|
||||
|
||||
RefPtr<NetworkAdapter> from_ipv4_address(const IPv4Address&) const;
|
||||
RefPtr<NetworkAdapter> lookup_by_name(StringView) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue