NetworkManager r3585 - trunk/test
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3585 - trunk/test
- Date: Tue, 22 Apr 2008 15:02:04 +0100 (BST)
Author: dcbw
Date: Tue Apr 22 14:02:04 2008
New Revision: 3585
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3585&view=rev
Log:
Show GSM & CDMA device types
Modified:
trunk/test/nm-tool.c
Modified: trunk/test/nm-tool.c
==============================================================================
--- trunk/test/nm-tool.c (original)
+++ trunk/test/nm-tool.c Tue Apr 22 14:02:04 2008
@@ -34,6 +34,8 @@
#include <nm-device.h>
#include <nm-device-802-3-ethernet.h>
#include <nm-device-802-11-wireless.h>
+#include <nm-gsm-device.h>
+#include <nm-cdma-device.h>
#include <nm-utils.h>
static gboolean
@@ -211,6 +213,10 @@
print_string ("Type", "Wired");
else if (NM_IS_DEVICE_802_11_WIRELESS (device))
print_string ("Type", "802.11 Wireless");
+ else if (NM_IS_GSM_DEVICE (device))
+ print_string ("Type", "Mobile Broadband (GSM)");
+ else if (NM_IS_CDMA_DEVICE (device))
+ print_string ("Type", "Mobile Broadband (CDMA)");
print_string ("Driver", nm_device_get_driver (device) ? nm_device_get_driver (device) : "(unknown)");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]