diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-05-05 18:42:04 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-05-05 18:42:04 +0000 |
commit | 71ee6db7ac5d0d9a6ac107676602bf2b7253acc9 (patch) | |
tree | 0eb3020bc473dd44b399e163842021299ec5dde5 /navit/binding | |
parent | 9d94a7f9a964d30114a283b0b43ca35c0a2765d5 (diff) | |
download | navit-71ee6db7ac5d0d9a6ac107676602bf2b7253acc9.tar.gz |
Add:Core:Made routing optionally asynchronous
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2254 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/binding')
-rw-r--r-- | navit/binding/dbus/binding_dbus.c | 2 | ||||
-rw-r--r-- | navit/binding/python/navit.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/navit/binding/dbus/binding_dbus.c b/navit/binding/dbus/binding_dbus.c index 677e27aa5..b4ead6d87 100644 --- a/navit/binding/dbus/binding_dbus.c +++ b/navit/binding/dbus/binding_dbus.c @@ -681,7 +681,7 @@ request_navit_set_destination(DBusConnection *connection, DBusMessage *message) dbus_message_iter_get_basic(&iter, &description); dbg(0, " destination -> %s\n", description); - navit_set_destination(navit, &pc, description); + navit_set_destination(navit, &pc, description, 1); return empty_reply(connection, message); } diff --git a/navit/binding/python/navit.c b/navit/binding/python/navit.c index e83619b7b..0a92210c7 100644 --- a/navit/binding/python/navit.c +++ b/navit/binding/python/navit.c @@ -56,9 +56,10 @@ navit_set_destination_py(navitObject *self, PyObject *args) { PyObject *pcoord; const char *description; - if (!PyArg_ParseTuple(args, "O!s", &pcoord_Type, &pcoord, &description)) + int async; + if (!PyArg_ParseTuple(args, "O!si", &pcoord_Type, &pcoord, &description, &async)) return NULL; - navit_set_destination(self->navit, pcoord_py_get(pcoord), description); + navit_set_destination(self->navit, pcoord_py_get(pcoord), description, async); Py_RETURN_NONE; } |