aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-01-10 09:59:56 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-01-10 09:59:56 +0100
commite02c991042b1712ea23d888317bf6c46c6c5bead (patch)
tree264051c4b7a7ea385a04edbfd359b76930cb6173
parentf2900f77be458329e1f0944dad10c65043fb1364 (diff)
downloadconnman-gnome-e02c991042b1712ea23d888317bf6c46c6c5bead.tar.gz
Add support for interfaces in shutdown state
-rw-r--r--common/client.c2
-rw-r--r--common/client.h1
-rw-r--r--common/test-client.c3
3 files changed, 6 insertions, 0 deletions
diff --git a/common/client.c b/common/client.c
index 55b30cf..5de4985 100644
--- a/common/client.c
+++ b/common/client.c
@@ -124,6 +124,8 @@ static guint string_to_state(const char *state)
return CLIENT_STATE_CARRIER;
else if (g_ascii_strcasecmp(state, "ready") == 0)
return CLIENT_STATE_READY;
+ else if (g_ascii_strcasecmp(state, "shutdown") == 0)
+ return CLIENT_STATE_SHUTDOWN;
else
return CLIENT_STATE_UNKNOWN;
}
diff --git a/common/client.h b/common/client.h
index 071f071..adc7f88 100644
--- a/common/client.h
+++ b/common/client.h
@@ -52,6 +52,7 @@ enum {
CLIENT_STATE_CONFIG,
CLIENT_STATE_CARRIER,
CLIENT_STATE_READY,
+ CLIENT_STATE_SHUTDOWN,
};
enum {
diff --git a/common/test-client.c b/common/test-client.c
index 9399df1..a591aa8 100644
--- a/common/test-client.c
+++ b/common/test-client.c
@@ -52,6 +52,9 @@ static void state_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell,
case CLIENT_STATE_READY:
str = "Ready";
break;
+ case CLIENT_STATE_SHUTDOWN:
+ str = "Shutdown";
+ break;
default:
str = "Unknown";
break;