diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-03-27 13:53:55 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-04-04 10:25:27 +0300 |
commit | 2fb3485481b707a3b2c38574a571f6c4d486219a (patch) | |
tree | c5d5d745c8397439423b909ff99d2cfb9ecd8ba9 /client/dbus_helpers.c | |
parent | 6d0669d26f21eadd906e1ee05e85c7d1e55d94b7 (diff) | |
download | connman-2fb3485481b707a3b2c38574a571f6c4d486219a.tar.gz connman-2fb3485481b707a3b2c38574a571f6c4d486219a.tar.bz2 connman-2fb3485481b707a3b2c38574a571f6c4d486219a.zip |
client: Add calls to save and redraw input prompt
Diffstat (limited to 'client/dbus_helpers.c')
-rw-r--r-- | client/dbus_helpers.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/dbus_helpers.c b/client/dbus_helpers.c index 816da73a..ccdf695d 100644 --- a/client/dbus_helpers.c +++ b/client/dbus_helpers.c @@ -24,6 +24,7 @@ #include <errno.h> #include <glib.h> +#include "input.h" #include "dbus_helpers.h" #define TIMEOUT 60000 @@ -129,6 +130,8 @@ static void dbus_method_reply(DBusPendingCall *call, void *user_data) DBusMessage *reply; DBusMessageIter iter; + __connmanctl_save_rl(); + reply = dbus_pending_call_steal_reply(call); if (dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR) { DBusError err; @@ -146,6 +149,10 @@ static void dbus_method_reply(DBusPendingCall *call, void *user_data) callback->cb(&iter, NULL, callback->user_data); end: + __connmanctl_redraw_rl(); + if (__connmanctl_is_interactive() == false) + __connmanctl_quit(); + g_free(callback); dbus_message_unref(reply); } |