summaryrefslogtreecommitdiff
path: root/navit/binding/python
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-05-05 18:42:04 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-05-05 18:42:04 +0000
commit71ee6db7ac5d0d9a6ac107676602bf2b7253acc9 (patch)
tree0eb3020bc473dd44b399e163842021299ec5dde5 /navit/binding/python
parent9d94a7f9a964d30114a283b0b43ca35c0a2765d5 (diff)
downloadnavit-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/python')
-rw-r--r--navit/binding/python/navit.c5
1 files changed, 3 insertions, 2 deletions
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;
}