summaryrefslogtreecommitdiff
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorPhilippe De Swert <philippedeswert@gmail.com>2018-02-12 20:37:14 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-02-13 13:00:39 -0600
commit08ac5a6e5b4c1279847b5d5c0dbcdf3e9fbcff84 (patch)
treec5210207b38fdd9a773e347fb6dcea61e25e1306 /src/voicecall.c
parente29f9511b1e6d8466d44cf8d8c76d663a0e29c74 (diff)
downloadofono-08ac5a6e5b4c1279847b5d5c0dbcdf3e9fbcff84.tar.gz
voicecall: Rename hfp dialing functions
Calling from memory index is very similar in functionality to dialing the last called number. So we rename the functions so we can reuse them, to deal with memory index calling. Function names now also reflect this is for hfp.
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 4c2f71f8..eae4b904 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -1577,7 +1577,7 @@ static DBusMessage *manager_dial(DBusConnection *conn,
return __ofono_error_failed(msg);
}
-static void manager_dial_last_callback(const struct ofono_error *error,
+static void manager_dial_hfp_callback(const struct ofono_error *error,
void *data)
{
struct ofono_voicecall *vc = data;
@@ -1606,7 +1606,7 @@ error:
__ofono_error_failed(vc->pending));
}
-static int voicecall_dial_last(struct ofono_voicecall *vc,
+static int voicecall_dial_hfp(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
struct ofono_modem *modem = __ofono_atom_get_modem(vc->atom);
@@ -1646,7 +1646,7 @@ static DBusMessage *manager_dial_last(DBusConnection *conn,
vc->pending = dbus_message_ref(msg);
- err = voicecall_dial_last(vc, manager_dial_last_callback, vc);
+ err = voicecall_dial_hfp(vc, manager_dial_hfp_callback, vc);
if (err >= 0)
return NULL;