Commit 7eeefaea authored by Tambet Ingo's avatar Tambet Ingo Committed by Tambet Ingo

2007-02-12 Tambet Ingo <tambet@ximian.com>

	* 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
parent 8a4c57f6
2007-02-12 Tambet Ingo <tambet@ximian.com>
* 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.
Totally break NetworkManager. Please use 0.6 branch until futher notice.
* src/:
......
......@@ -3,7 +3,6 @@
<node name="/">
<interface name="org.freedesktop.NetworkManager.AccessPoint">
<property name="Address" type="s" access="read"/>
<property name="Broadcast" type="b" access="read"/>
<property name="Capabilities" type="i" access="read"/>
<property name="Encrypted" type="b" access="read"/>
<property name="Essid" type="s" access="read"/>
......
......@@ -7,7 +7,7 @@
<arg name="user_requested" type="b"/>
</method>
<property name="Address" type="s" access="read"/>
<property name="HwAddress" type="s" access="read"/>
<property name="Speed" type="i" access="read"/>
</interface>
</node>
......@@ -11,7 +11,6 @@
<property name="Driver" type="s" access="read"/>
<property name="Capabilities" type="i" access="read"/>
<property name="Ip4Address" type="i" access="read"/>
<property name="UseDhcp" type="b" access="read"/>
<property name="State" type="u" access="read"/>
<!-- Ugh, but I see no other way of getting the type on the caller
......
......@@ -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);
......
......@@ -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)
{
......
......@@ -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);
......
......@@ -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)
{
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment