mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 15:00:30 +01:00
* 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
35 lines
980 B
C
35 lines
980 B
C
#ifndef NM_UTILS_H
|
|
#define NM_UTILS_H
|
|
|
|
#include <dbus/dbus-glib.h>
|
|
|
|
char *nm_dbus_get_string_property (DBusGProxy *proxy,
|
|
const char *interface,
|
|
const char *prop_name);
|
|
|
|
char *nm_dbus_get_object_path_property (DBusGProxy *proxy,
|
|
const char *interface,
|
|
const char *prop_name);
|
|
|
|
gint32 nm_dbus_get_int_property (DBusGProxy *proxy,
|
|
const char *interface,
|
|
const char *prop_name);
|
|
|
|
guint32 nm_dbus_get_uint_property (DBusGProxy *proxy,
|
|
const char *interface,
|
|
const char *prop_name);
|
|
|
|
gboolean nm_dbus_get_property (DBusGProxy *proxy,
|
|
const char *interface,
|
|
const char *prop_name,
|
|
GValue *value);
|
|
void nm_dbus_set_property (DBusGProxy *proxy,
|
|
const char *interface,
|
|
const char *prop_name,
|
|
GValue *value);
|
|
|
|
char *nm_dbus_introspect (DBusGConnection *connection,
|
|
const char *interface,
|
|
const char *path);
|
|
|
|
#endif /* NM_UTILS_H */
|