Skip to content

Commit 0f54a91

Browse files
Non default value API
Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
1 parent 9d335f9 commit 0f54a91

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

ddsenabler_participants/include/ddsenabler_participants/EnablerParticipant.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ class EnablerParticipant : public ddspipe::participants::SchemaParticipant
102102
RPC_PROTOCOL get_service_rpc_protocol(
103103
const std::string& service_name);
104104

105+
DDSENABLER_PARTICIPANTS_DllAPI
106+
bool announce_action(
107+
const std::string& action_name);
108+
105109
DDSENABLER_PARTICIPANTS_DllAPI
106110
bool announce_action(
107111
const std::string& action_name,
108-
RPC_PROTOCOL rpc_protocol = RPC_PROTOCOL::ROS2);
112+
RPC_PROTOCOL rpc_protocol);
109113

110114
DDSENABLER_PARTICIPANTS_DllAPI
111115
bool revoke_action(

ddsenabler_participants/src/cpp/EnablerParticipant.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,12 @@ RPC_PROTOCOL EnablerParticipant::get_service_rpc_protocol(
440440
return RPC_PROTOCOL::PROTOCOL_UNKNOWN;
441441
}
442442

443+
bool EnablerParticipant::announce_action(
444+
const std::string& action_name)
445+
{
446+
return announce_action(action_name, RPC_PROTOCOL::ROS2);
447+
}
448+
443449
bool EnablerParticipant::announce_action(
444450
const std::string& action_name,
445451
RPC_PROTOCOL rpc_protocol)

0 commit comments

Comments
 (0)