Skip to content

Commit

Permalink
add interface_name to InterfaceDescription
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com>
  • Loading branch information
mamueluth and saikishor authored Aug 19, 2024
1 parent 8555ac9 commit c9df88d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct TransmissionInfo
struct InterfaceDescription
{
InterfaceDescription(const std::string & prefix_name_in, const InterfaceInfo & interface_info_in)
: prefix_name(prefix_name_in), interface_info(interface_info_in)
: prefix_name(prefix_name_in), interface_info(interface_info_in), interface_name(prefix_name + "/" + interface_info.name)
{
}

Expand All @@ -147,7 +147,11 @@ struct InterfaceDescription
*/
InterfaceInfo interface_info;

std::string get_name() const { return prefix_name + "/" + interface_info.name; }
/**
* Name of the interface
*/
std::string interface_name;
std::string get_name() const { return interface_name; }

std::string get_interface_type() const { return interface_info.name; }
};
Expand Down

0 comments on commit c9df88d

Please sign in to comment.