diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-04-25 16:49:16 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-05-03 17:08:31 +0300 |
commit | fff12a67390147487a7d3b41e7c8aa60487243ed (patch) | |
tree | 52aa328c9f09b41f948ac468caa2b9eed864a5e2 /client/dbus_helpers.h | |
parent | 96eeaec35d249a615537e33981151b699a64d76f (diff) | |
download | connman-fff12a67390147487a7d3b41e7c8aa60487243ed.tar.gz connman-fff12a67390147487a7d3b41e7c8aa60487243ed.tar.bz2 connman-fff12a67390147487a7d3b41e7c8aa60487243ed.zip |
client: Enable method call return to exit or continue running
Enable a client method call return function to exit or continue running when
in non-interactive mode. When a connmanctl_dbus_method_return_func_t returns
-EINPROGRESS in non-interactive mode, the command line client is kept running
even after the method call has been processed.
The command line client needs to keep running after a successful Agent
registration in order to process Agent method calls. Also enabling tethering
in non-interactive mode needs the client executing until SSID, passphrase and
tethering mode have been set.
Diffstat (limited to 'client/dbus_helpers.h')
-rw-r--r-- | client/dbus_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dbus_helpers.h b/client/dbus_helpers.h index 7956a05c..fde11837 100644 --- a/client/dbus_helpers.h +++ b/client/dbus_helpers.h @@ -32,7 +32,7 @@ extern "C" { void __connmanctl_dbus_print(DBusMessageIter *iter, const char *pre, const char *dict, const char *sep); -typedef void (*connmanctl_dbus_method_return_func_t)(DBusMessageIter *iter, +typedef int (*connmanctl_dbus_method_return_func_t)(DBusMessageIter *iter, const char *error, void *user_data); int __connmanctl_dbus_method_call(DBusConnection *connection, const char *path, const char *interface, const char *method, |