mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 02:10:09 +01:00
platform: add nmp_object_link_get_ifname() helper
This commit is contained in:
parent
fb6e9795b7
commit
bc3439d14f
1 changed files with 10 additions and 0 deletions
|
|
@ -995,4 +995,14 @@ nm_platform_lookup_object_by_addr_family (NMPlatform *platform,
|
|||
return nm_platform_lookup (platform, &lookup);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline const char *
|
||||
nmp_object_link_get_ifname (const NMPObject *obj)
|
||||
{
|
||||
if (!obj)
|
||||
return NULL;
|
||||
return NMP_OBJECT_CAST_LINK (obj)->name;
|
||||
}
|
||||
|
||||
#endif /* __NMP_OBJECT_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue