libnm-glib: refactor _nm_device_type_for_path()
authorBeniamino Galvani <bgalvani@redhat.com>
Tue, 10 Nov 2015 18:09:36 +0000 (19:09 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Wed, 25 Nov 2015 10:39:57 +0000 (11:39 +0100)
commit33e76cf0e04534e8ebb278f518b2ed2ec69d4d15
treef9ddc11644ace946056f12c66b6d535f1e643e24
parent877de231b84d7e824435f20255b9fa8a088ba9a6
libnm-glib: refactor _nm_device_type_for_path()

Refactor nm-device.c to expose a private _nm_device_type_for_path()
function which can be used by subclasses to query the actual device
type. In particular, NMDeviceGeneric will use the result of this
function to figure out which interface to use for the D-Bus proxy.
libnm-glib/nm-device-private.h
libnm-glib/nm-device.c