Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20242] Update discovery callbacks #75

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions include/DiscoveryServerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,15 @@ class DiscoveryServerManager
ParticipantDiscoveryInfo&& info,
bool& should_be_ignored) override;

void on_subscriber_discovery(
void on_data_reader_discovery(
DomainParticipant* participant,
ReaderDiscoveryInfo&& info) override;
ReaderDiscoveryInfo&& info,
bool& should_be_ignored) override;

void on_publisher_discovery(
void on_data_writer_discovery(
DomainParticipant* participant,
WriterDiscoveryInfo&& info) override;
WriterDiscoveryInfo&& info,
bool& should_be_ignored) override;

// callback liveliness functions
void on_liveliness_changed(
Expand Down
12 changes: 8 additions & 4 deletions src/DiscoveryServerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1735,10 +1735,12 @@ void DiscoveryServerManager::on_participant_discovery(
}
}

void DiscoveryServerManager::on_subscriber_discovery(
void DiscoveryServerManager::on_data_reader_discovery(
DomainParticipant* participant,
ReaderDiscoveryInfo&& info)
ReaderDiscoveryInfo&& info,
bool& should_be_ignored)
{
static_cast<void>(should_be_ignored);
typedef ReaderDiscoveryInfo::DISCOVERY_STATUS DS;

// if the callback origin was removed ignore
Expand Down Expand Up @@ -1813,10 +1815,12 @@ void DiscoveryServerManager::on_subscriber_discovery(
<< " topic: " << info.info.topicName() << " GUID: " << subsid);
}

void DiscoveryServerManager::on_publisher_discovery(
void DiscoveryServerManager::on_data_writer_discovery(
DomainParticipant* participant,
WriterDiscoveryInfo&& info)
WriterDiscoveryInfo&& info,
bool& should_be_ignored)
{
static_cast<void>(should_be_ignored);
typedef WriterDiscoveryInfo::DISCOVERY_STATUS DS;

// if the callback origin was removed ignore
Expand Down