summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-13 10:40:17 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-30 12:57:07 +0300
commitb49ad024c09d1364f1e801d00e3f42ffbca4fa11 (patch)
tree1a10606dca6b7e0d01878090a706f0bc808a86a4 /src/session.c
parent0ef023c37faf21a16d2e4e7126abef29d6eb7ee4 (diff)
downloadconnman-b49ad024c09d1364f1e801d00e3f42ffbca4fa11.tar.gz
connman-b49ad024c09d1364f1e801d00e3f42ffbca4fa11.tar.bz2
connman-b49ad024c09d1364f1e801d00e3f42ffbca4fa11.zip
session: Remove IdleTimeout implementation
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/session.c b/src/session.c
index d103b376..e6acacaa 100644
--- a/src/session.c
+++ b/src/session.c
@@ -93,7 +93,6 @@ struct session_info {
connman_bool_t avoid_handover;
connman_bool_t stay_connected;
unsigned int periodic_connect;
- unsigned int idle_timeout;
connman_bool_t ecall;
enum connman_session_roaming_policy roaming_policy;
unsigned int marker;
@@ -512,14 +511,6 @@ static void append_notify(DBusMessageIter *dict,
}
if (session->append_all == TRUE ||
- info->idle_timeout != info_last->idle_timeout) {
- connman_dbus_dict_append_basic(dict, "IdleTimeout",
- DBUS_TYPE_UINT32,
- &info->idle_timeout);
- info_last->idle_timeout = info->idle_timeout;
- }
-
- if (session->append_all == TRUE ||
info->ecall != info_last->ecall) {
connman_dbus_dict_append_basic(dict, "EmergencyCall",
DBUS_TYPE_BOOLEAN,
@@ -589,7 +580,6 @@ static connman_bool_t compute_notifiable_changes(struct connman_session *session
info->avoid_handover != info_last->avoid_handover ||
info->stay_connected != info_last->stay_connected ||
info->roaming_policy != info_last->roaming_policy ||
- info->idle_timeout != info_last->idle_timeout ||
info->priority != info_last->priority ||
info->marker != info_last->marker ||
info->ecall != info_last->ecall ||
@@ -1456,9 +1446,6 @@ static DBusMessage *change_session(DBusConnection *conn,
if (g_str_equal(name, "PeriodicConnect") == TRUE) {
dbus_message_iter_get_basic(&value,
&info->periodic_connect);
- } else if (g_str_equal(name, "IdleTimeout") == TRUE) {
- dbus_message_iter_get_basic(&value,
- &info->idle_timeout);
} else {
goto err;
}
@@ -1581,7 +1568,6 @@ int __connman_session_create(DBusMessage *msg)
CONNMAN_SESSION_ROAMING_POLICY_FORBIDDEN;
GSList *allowed_bearers = NULL;
unsigned int periodic_connect = 0;
- unsigned int idle_timeout = 0;
int err;
@@ -1641,9 +1627,6 @@ int __connman_session_create(DBusMessage *msg)
if (g_str_equal(key, "PeriodicConnect") == TRUE) {
dbus_message_iter_get_basic(&value,
&periodic_connect);
- } else if (g_str_equal(key, "IdleTimeout") == TRUE) {
- dbus_message_iter_get_basic(&value,
- &idle_timeout);
} else {
return -EINVAL;
}
@@ -1717,7 +1700,6 @@ int __connman_session_create(DBusMessage *msg)
info->avoid_handover = avoid_handover;
info->stay_connected = stay_connected;
info->periodic_connect = periodic_connect;
- info->idle_timeout = idle_timeout;
info->ecall = ecall;
info->roaming_policy = roaming_policy;
info->entry = NULL;
@@ -1767,7 +1749,6 @@ int __connman_session_create(DBusMessage *msg)
info_last->avoid_handover = info->avoid_handover;
info_last->stay_connected = info->stay_connected;
info_last->periodic_connect = info->periodic_connect;
- info_last->idle_timeout = info->idle_timeout;
info_last->ecall = info->ecall;
info_last->roaming_policy = info->roaming_policy;
info_last->entry = info->entry;