NetworkManager/src/platform
Thomas Haller 7b6ffb1e5f platform: intern driver string for NMPlatformLink
Always intern string from udev_get_driver().

We use the result of udev_get_driver() for setting NMPlatformLink.driver.
In all other cases, we already set that value to an interned string,
which simplifies memory handling.

As it was, the lifetime of that string was tied to the lifetime of the
GUdevDevice.

This is not a stelar solution, but we assume that the overall numbers
of different drivers is limited so we don't leak large amounts of
memory.

(cherry picked from commit 3171b543dc)
2015-06-17 15:28:01 +02:00
..
tests platform: refactor extraction of type-name for link 2015-06-17 15:28:01 +02:00
wifi platform: rework link type detection for better fallback (bgo #743209) 2015-06-17 15:28:01 +02:00
Makefile.am platform: add minimal Makefile.am for convenience 2013-06-19 13:48:29 +02:00
nm-fake-platform.c platform: refactor extraction of type-name for link 2015-06-17 15:28:01 +02:00
nm-fake-platform.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-linux-platform.c platform: intern driver string for NMPlatformLink 2015-06-17 15:28:01 +02:00
nm-linux-platform.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-platform.c platform: intern driver string for NMPlatformLink 2015-06-17 15:28:01 +02:00
nm-platform.h platform: intern driver string for NMPlatformLink 2015-06-17 15:28:01 +02:00