summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-09-20 15:03:31 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-09-22 15:45:50 +0200
commit3d50a9640625c48c376f8005ffac68056b758e2a (patch)
tree018b927f217de1c3aac1a0ba98c9ba0417d7e924 /src/session.c
parentc0f945b077a71e1f9973ec92ef2f53f0d2994738 (diff)
downloadconnman-3d50a9640625c48c376f8005ffac68056b758e2a.tar.gz
connman-3d50a9640625c48c376f8005ffac68056b758e2a.tar.bz2
connman-3d50a9640625c48c376f8005ffac68056b758e2a.zip
session: Rename test_and_disconnect
To deselect_and_disconnect in order to match more to the select_and_connect function.
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/session.c b/src/session.c
index d5d3f4c0..a06c0147 100644
--- a/src/session.c
+++ b/src/session.c
@@ -778,7 +778,7 @@ static gboolean call_connect(gpointer user_data)
return FALSE;
}
-static void test_and_disconnect(struct connman_session *session)
+static void deselect_and_disconnect(struct connman_session *session)
{
struct session_info *info = session->info;
struct connman_service *service;
@@ -809,7 +809,7 @@ static void deselect_previous_service(struct connman_session *session,
struct session_info *info = session->info;
if (info->entry != NULL && info->entry != entry)
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
}
static void select_online_service(struct connman_session *session,
@@ -840,7 +840,7 @@ static void select_offline_service(struct connman_session *session,
* which is in free ride mode.
*/
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
return;
}
@@ -927,7 +927,7 @@ static void session_changed(struct connman_session *session,
* This service is not part of this
* session anymore.
*/
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
}
}
@@ -951,7 +951,7 @@ static void session_changed(struct connman_session *session,
break;
case CONNMAN_SESSION_TRIGGER_DISCONNECT:
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
break;
case CONNMAN_SESSION_TRIGGER_PERIODIC:
@@ -981,7 +981,7 @@ static void session_changed(struct connman_session *session,
* Therefore we want to restart the algorithm. Before we
* can do that we have to cleanup a potientional old entry.
*/
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
info->reason = CONNMAN_SESSION_REASON_CONNECT; /* restore value */
DBG("Retry to find a matching session");
@@ -1012,7 +1012,7 @@ static void session_changed(struct connman_session *session,
case CONNMAN_SESSION_TRIGGER_ECALL:
if (info->online == FALSE && info->entry != NULL &&
info->entry->service != NULL) {
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
}
break;
@@ -1332,7 +1332,7 @@ static int session_disconnect(struct connman_session *session)
g_dbus_unregister_interface(connection, session->session_path,
CONNMAN_SESSION_INTERFACE);
- test_and_disconnect(session);
+ deselect_and_disconnect(session);
g_hash_table_remove(session_hash, session->session_path);