mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-05 07:40:49 +00:00
e1c3b5538c
* libnm-glib/nm-device.c (nm_device_get_description): Implement. * libnm-glib/nm-client.c (nm_client_manager_is_running): Implement. Also add a "manager-running" signal that notifies the appearance/disappearance of NM. (nm_client_sleep): Implement. * libnm-glib/nm-device.c: * libnm-glib/nm-device-802-11-wireless.c: * libnm-glib/nm-device-802-3-ethernet.c: Don't inherit from DBusGProxy, add a proxy to private data. The reason is, classes inherited from NMDevice wouldn't get any dbus signals for anything but their own dbus interface. DBusGProxy objects support only one interfaces and to work around this, NMDevice has spearate proxy for each dbus interface. The nice side effect of this change is that we do not create a new DBusGProxy object for each property access. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2479 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
15 lines
448 B
C
15 lines
448 B
C
#ifndef NM_DEVICE_PRIVATE_H
|
|
#define NM_DEVICE_PRIVATE_H
|
|
|
|
#include <dbus/dbus-glib.h>
|
|
|
|
DBusGConnection *nm_device_get_connection (NMDevice *device);
|
|
const char *nm_device_get_path (NMDevice *device);
|
|
DBusGProxy *nm_device_get_properties_proxy (NMDevice *device);
|
|
|
|
/* static methods */
|
|
NMDeviceType nm_device_type_for_path (DBusGConnection *connection,
|
|
const char *path);
|
|
|
|
#endif /* NM_DEVICE_PRIVATE_H */
|