From edce2aa92e81d262728256c9a5d07273c76d8888 Mon Sep 17 00:00:00 2001 From: singesang Date: Wed, 15 Oct 2008 22:36:24 +0000 Subject: [PATCH] Fix:binding_dbus: Added binding for navit_draw() git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1479 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/binding/dbus/binding_dbus.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/navit/navit/binding/dbus/binding_dbus.c b/navit/navit/binding/dbus/binding_dbus.c index e46b1e4..5941ba7 100644 --- a/navit/navit/binding/dbus/binding_dbus.c +++ b/navit/navit/binding/dbus/binding_dbus.c @@ -224,6 +224,22 @@ pcoord_get_from_message(DBusMessage *message, DBusMessageIter *iter, struct pcoo return 1; } +static DBusHandlerResult +request_navit_draw(DBusConnection *connection, DBusMessage *message) +{ + struct navit *navit; + DBusMessageIter iter; + + navit=object_get_from_message(message, "navit"); + if (! navit) + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; + + navit_draw(navit); + + return empty_reply(connection, message); +} + + /** * Extracts a struct point from a DBus message * @@ -440,6 +456,7 @@ struct dbus_method { {"", "iter", "", "o", request_main_iter}, {"", "iter_destroy", "o", "", request_main_iter_destroy}, {"", "get_navit", "o", "o", request_main_get_navit}, + {".navit", "draw", "", "", request_navit_draw}, {".navit", "set_center", "(iii)", "", request_navit_set_center}, {".navit", "set_center_screen", "(ii)", "", request_navit_set_center_screen}, {".navit", "set_layout", "s", "", request_navit_set_layout}, -- 2.7.4