summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denis.kenzior@intel.com>2009-10-22 17:42:40 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-10-23 17:05:54 -0500
commit7409a6761f6dcebf8a0d8b60222c8a7b7f9a1d64 (patch)
tree6b9957db10cae53503e1a39c2110f1b331c52c33 /src
parentcbaf0aacfca50f85654a3ff7f0ed973aa67f37f3 (diff)
downloadofono-7409a6761f6dcebf8a0d8b60222c8a7b7f9a1d64.tar.bz2
Refactor: Context get_properties
Diffstat (limited to 'src')
-rw-r--r--src/gprs.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/gprs.c b/src/gprs.c
index d2f8234e..ba4e7d37 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -136,20 +136,24 @@ static DBusMessage *pri_get_properties(DBusConnection *conn,
OFONO_PROPERTIES_ARRAY_SIGNATURE,
&dict);
- value = ctx->context->active;
+ ofono_dbus_dict_append(&dict, "Name", DBUS_TYPE_STRING, &name);
+
+ value = ctx->active;
ofono_dbus_dict_append(&dict, "Active", DBUS_TYPE_BOOLEAN, &value);
- ofono_dbus_dict_append(&dict, "AccessPointName",
- DBUS_TYPE_STRING, &ctx->context->apn);
+ ofono_dbus_dict_append(&dict, "Type", DBUS_TYPE_STRING, &type);
- ofono_dbus_dict_append(&dict, "Type",
- DBUS_TYPE_STRING, &type);
+ strvalue = ctx->context.apn;
+ ofono_dbus_dict_append(&dict, "AccessPointName", DBUS_TYPE_STRING,
+ &strvalue);
- ofono_dbus_dict_append(&dict, "Username",
- DBUS_TYPE_STRING, &ctx->context->username);
+ strvalue = ctx->context.username;
+ ofono_dbus_dict_append(&dict, "Username", DBUS_TYPE_STRING,
+ &strvalue);
- ofono_dbus_dict_append(&dict, "Passwod",
- DBUS_TYPE_STRING, &ctx->context->password);
+ strvalue = ctx->context.password;
+ ofono_dbus_dict_append(&dict, "Passwod", DBUS_TYPE_STRING,
+ &strvalue);
dbus_message_iter_close_container(&iter, &dict);