projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b90265
)
vpn-provider: SetProperty works with all properties
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Tue, 19 Feb 2013 08:45:08 +0000
(10:45 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Tue, 19 Feb 2013 12:29:42 +0000
(14:29 +0200)
vpn/vpn-provider.c
patch
|
blob
|
history
diff --git
a/vpn/vpn-provider.c
b/vpn/vpn-provider.c
index
8606adc
..
0336636
100644
(file)
--- a/
vpn/vpn-provider.c
+++ b/
vpn/vpn-provider.c
@@
-438,8
+438,12
@@
static DBusMessage *set_property(DBusConnection *conn, DBusMessage *msg,
send_routes(provider, provider->user_routes,
"UserRoutes");
}
- } else
- return __connman_error_invalid_property(msg);
+ } else {
+ const char *str;
+
+ dbus_message_iter_get_basic(&value, &str);
+ vpn_provider_set_string(provider, name, str);
+ }
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}