Skip to content

Commit

Permalink
fix(hal/windows): correct header sequence for UartPortFinder (#209)
Browse files Browse the repository at this point in the history
* chore: expose services::EventDispatcherWithNetwork on NetworkAdapter

* fix(hal/windows): correct header sequence for UartPortFinder

Disabled clang-format for header section

* Update hal/windows/UartPortFinder.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
rjaegers and github-actions[bot] committed Feb 28, 2023
1 parent 1388a9d commit d102e2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hal/windows/UartPortFinder.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// clang-format off
#include "hal/windows/UartPortFinder.hpp"
#include "infra/util/Optional.hpp"
#include <initguid.h>
#include <devpkey.h>
#include <devpropdef.h>
#include <initguid.h>
#include <sstream>

// clang-format on

namespace hal
{
namespace
Expand Down
5 changes: 5 additions & 0 deletions services/network_instantiations/NetworkAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ namespace main_
return nameResolver;
}

services::EventDispatcherWithNetwork& NetworkAdapter::EventDispatcher()
{
return network;
}

void NetworkAdapter::Run()
{
network.Run();
Expand Down
1 change: 1 addition & 0 deletions services/network_instantiations/NetworkAdapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace main_
services::DatagramFactory& DatagramFactory();
services::Multicast& Multicast();
services::NameResolver& NameResolver();
services::EventDispatcherWithNetwork& EventDispatcher();

void Run();

Expand Down

0 comments on commit d102e2b

Please sign in to comment.