diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-08-14 04:14:31 -0300 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-08-17 14:59:50 +0200 |
commit | 8181ee6b954e733c1947a456d57de6cf03d5db13 (patch) | |
tree | 838d06a99ad9317a75ed5600f08289bc7663c890 /dundee/dbus.c | |
parent | 8112a025b9dcc0c56a2c55ee874d89cccbb4ffe4 (diff) | |
download | ofono-8181ee6b954e733c1947a456d57de6cf03d5db13.tar.bz2 |
dundee: add timeout to close stalled ppp handshake
If something goes wrong the PPP handshake can stall, then we just add a
timer to return an error after a certain timeout (15 seconds).
Diffstat (limited to 'dundee/dbus.c')
-rw-r--r-- | dundee/dbus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dundee/dbus.c b/dundee/dbus.c index c245eab2..90bd76be 100644 --- a/dundee/dbus.c +++ b/dundee/dbus.c @@ -43,3 +43,9 @@ DBusMessage *__dundee_error_failed(DBusMessage *msg) ".Failed", "Operation failed"); } + +DBusMessage *__dundee_error_timed_out(DBusMessage *msg) +{ + return g_dbus_create_error(msg, DUNDEE_ERROR_INTERFACE ".Timedout", + "Operation failure due to timeout"); +} |