From 7eeefaea4033d836e8a28149b453e5fdca9cc18e Mon Sep 17 00:00:00 2001 From: Tambet Ingo Date: Mon, 12 Feb 2007 14:46:49 +0000 Subject: 2007-02-12 Tambet Ingo * libnm-glib/nm-device.c (nm_device_get_use_dhcp): Remove. * libnm-glib/nm-access-point.c (nm_access_point_is_broadcast): Remove. * introspection/nm-device-802-3-ethernet.xml: Rename 'Address' property to 'HwAddress'. * introspection/nm-device.xml: Remove 'UseDhcp' property. * introspection/nm-access-point.xml: Remove 'Broadcast' property. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2310 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- libnm-glib/libnm-glib-test.c | 3 --- libnm-glib/nm-access-point.c | 17 ----------------- libnm-glib/nm-access-point.h | 1 - libnm-glib/nm-device.c | 17 ----------------- libnm-glib/nm-device.h | 1 - 5 files changed, 39 deletions(-) (limited to 'libnm-glib') diff --git a/libnm-glib/libnm-glib-test.c b/libnm-glib/libnm-glib-test.c index bd3a57379e..a03b3a2060 100644 --- a/libnm-glib/libnm-glib-test.c +++ b/libnm-glib/libnm-glib-test.c @@ -54,9 +54,6 @@ dump_device (NMDevice *device) g_print ("Driver: %s\n", str); g_free (str); - b = nm_device_get_use_dhcp (device); - g_print ("Use DHCP: %s\n", b ? "yes" : "no"); - u = nm_device_get_ip4_address (device); g_print ("IP address: %d\n", u); diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c index 74987ba330..320b1121c6 100644 --- a/libnm-glib/nm-access-point.c +++ b/libnm-glib/nm-access-point.c @@ -43,23 +43,6 @@ nm_access_point_get_address (NMAccessPoint *ap) return address; } -gboolean -nm_access_point_is_broadcast (NMAccessPoint *ap) -{ - GValue value = {0,}; - int broadcast = FALSE; - - g_return_val_if_fail (NM_IS_ACCESS_POINT (ap), FALSE); - - if (nm_dbus_get_property (DBUS_G_PROXY (ap), - NM_DBUS_INTERFACE_ACCESS_POINT, - "Broadcast", - &value)) - broadcast = g_value_get_boolean (&value); - - return broadcast; -} - int nm_access_point_get_capabilities (NMAccessPoint *ap) { diff --git a/libnm-glib/nm-access-point.h b/libnm-glib/nm-access-point.h index 63166b1392..13c626e4d6 100644 --- a/libnm-glib/nm-access-point.h +++ b/libnm-glib/nm-access-point.h @@ -25,7 +25,6 @@ GType nm_access_point_get_type (void); NMAccessPoint *nm_access_point_new (DBusGConnection *connection, const char *path); char *nm_access_point_get_address (NMAccessPoint *ap); -gboolean nm_access_point_is_broadcast (NMAccessPoint *ap); int nm_access_point_get_capabilities (NMAccessPoint *ap); gboolean nm_access_point_is_encrypted (NMAccessPoint *ap); char *nm_access_point_get_essid (NMAccessPoint *ap); diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c index ab18be194f..6fd5e68927 100644 --- a/libnm-glib/nm-device.c +++ b/libnm-glib/nm-device.c @@ -147,23 +147,6 @@ nm_device_get_driver (NMDevice *device) return driver; } -gboolean -nm_device_get_use_dhcp (NMDevice *device) -{ - gboolean dhcp = FALSE; - GValue value = {0,}; - - g_return_val_if_fail (NM_IS_DEVICE (device), FALSE); - - if (nm_dbus_get_property (DBUS_G_PROXY (device), - NM_DBUS_INTERFACE_DEVICE, - "UseDhcp", - &value)) - dhcp = g_value_get_boolean (&value); - - return dhcp; -} - guint32 nm_device_get_ip4_address (NMDevice *device) { diff --git a/libnm-glib/nm-device.h b/libnm-glib/nm-device.h index a135a575bd..dcdaf9a88c 100644 --- a/libnm-glib/nm-device.h +++ b/libnm-glib/nm-device.h @@ -33,7 +33,6 @@ void nm_device_deactivate (NMDevice *device); char *nm_device_get_iface (NMDevice *device); char *nm_device_get_udi (NMDevice *device); char *nm_device_get_driver (NMDevice *device); -gboolean nm_device_get_use_dhcp (NMDevice *device); guint32 nm_device_get_ip4_address (NMDevice *device); NMDeviceState nm_device_get_state (NMDevice *device); -- cgit v1.2.1