Skip to content

Commit 9473c1d

Browse files
feat(deps): bump the git-submodules group across 1 directory with 3 updates (#65)
* feat(deps): bump the git-submodules group across 1 directory with 3 updates Bumps the git-submodules group with 3 updates in the / directory: [amp-embedded-infra-lib](https://github.com/philips-software/amp-embedded-infra-lib), [amp-hal-st](https://github.com/philips-software/amp-hal-st) and [amp-preview](https://github.com/philips-software/amp-preview). Updates `amp-embedded-infra-lib` from `6c84af5` to `0ce6ab4` - [Release notes](https://github.com/philips-software/amp-embedded-infra-lib/releases) - [Commits](philips-software/amp-embedded-infra-lib@6c84af5...0ce6ab4) Updates `amp-hal-st` from `1529067` to `4495159` - [Release notes](https://github.com/philips-software/amp-hal-st/releases) - [Commits](philips-software/amp-hal-st@1529067...4495159) Updates `amp-preview` from `53f1ee6` to `ec0acbc` - [Release notes](https://github.com/philips-software/amp-preview/releases) - [Commits](philips-software/amp-preview@53f1ee6...ec0acbc) --- updated-dependencies: - dependency-name: amp-embedded-infra-lib dependency-type: direct:production dependency-group: git-submodules - dependency-name: amp-hal-st dependency-type: direct:production dependency-group: git-submodules - dependency-name: amp-preview dependency-type: direct:production dependency-group: git-submodules ... Signed-off-by: dependabot[bot] <[email protected]> * Adapt EchoServer for updated submodules --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richard Peters <[email protected]>
1 parent e3fc05b commit 9473c1d

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

amp-embedded-infra-lib

amp-hal-st

Submodule amp-hal-st updated 712 files

postmaster/instantiations/EchoServer.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ namespace main_
2222
}
2323

2424
SingleConnectionLink::SingleConnectionLink(services::SingleConnectionListener& listener1, services::SingleConnectionListener& listener2)
25-
: listener1(listener1)
26-
, listener2(listener2)
25+
: listener1(&listener1)
26+
, listener2(&listener2)
2727
{
2828
listener1.SetNewConnectionStrategy(*this);
2929
listener2.SetNewConnectionStrategy(*this);
3030
}
3131

32-
void SingleConnectionLink::StopCurrentConnection(services::SingleConnectionListener& listener)
32+
void SingleConnectionLink::StopCurrentConnection(void* listener)
3333
{
34-
if (&listener == &listener1)
34+
if (listener == listener1)
3535
listener1RequestedNewConnection = true;
36-
if (&listener == &listener2)
36+
if (listener == listener2)
3737
listener2RequestedNewConnection = true;
3838

3939
numStopped = 0;
40-
listener1.StopCurrentConnection(listener1);
41-
listener2.StopCurrentConnection(listener2);
40+
listener1->StopCurrentConnection(listener1);
41+
listener2->StopCurrentConnection(listener2);
4242
}
4343

4444
void SingleConnectionLink::StartNewConnection()
@@ -50,15 +50,15 @@ namespace main_
5050
if (listener1RequestedNewConnection)
5151
{
5252
listener1RequestedNewConnection = false;
53-
listener1.StartNewConnection();
53+
listener1->StartNewConnection();
5454

5555
if (listener2RequestedNewConnection)
5656
StopCurrentConnection(listener1);
5757
}
5858
else if (listener2RequestedNewConnection)
5959
{
6060
listener2RequestedNewConnection = false;
61-
listener2.StartNewConnection();
61+
listener2->StartNewConnection();
6262
}
6363
}
6464
}

postmaster/instantiations/EchoServer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ namespace main_
4545
SingleConnectionLink(services::SingleConnectionListener& listener1, services::SingleConnectionListener& listener2);
4646

4747
private:
48-
void StopCurrentConnection(services::SingleConnectionListener& listener) override;
48+
void StopCurrentConnection(void* listener) override;
4949
void StartNewConnection() override;
5050

5151
private:
5252
uint32_t numStopped = 0;
53-
services::SingleConnectionListener& listener1;
54-
services::SingleConnectionListener& listener2;
53+
services::SingleConnectionListener* const listener1;
54+
services::SingleConnectionListener* const listener2;
5555

5656
bool listener1RequestedNewConnection = false;
5757
bool listener2RequestedNewConnection = false;

0 commit comments

Comments
 (0)