Many of the users only require a read only reference to the time stamping label of the interface. This patch adds an appropriate method. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
18 lines
383 B
C
18 lines
383 B
C
/**
|
|
* @file interface.c
|
|
* @brief Implements network interface data structures.
|
|
* @note Copyright (C) 2020 Richard Cochran <richardcochran@gmail.com>
|
|
* @note SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
#include "interface.h"
|
|
|
|
const char *interface_label(struct interface *iface)
|
|
{
|
|
return iface->ts_label;
|
|
}
|
|
|
|
const char *interface_name(struct interface *iface)
|
|
{
|
|
return iface->name;
|
|
}
|