static DBusConnection *connection;
-static char *service_name="org.navit-project.navit";
+static char *service_name="org.navit_project.navit";
static char *object_path="/org/navit_project/navit";
GHashTable *object_hash;
DBusMessage *reply;
gchar *idata;
dbg(0,"Introspect\n");
- if (! strcmp(dbus_message_get_path(message), "/org/navit_project/navit")) {
+ if (! strcmp(dbus_message_get_path(message), object_path)) {
g_file_get_contents("binding/dbus/navit.introspect", &idata, NULL, NULL);
- reply = dbus_message_new_method_return(http://www.http.com//message);
+ reply = dbus_message_new_method_return(message);
dbus_message_append_args(reply, DBUS_TYPE_STRING, &idata, DBUS_TYPE_INVALID);
dbus_connection_send (connection, reply, NULL);
dbus_message_unref (reply);
}
#endif
for (i = 0 ; i < sizeof(dbus_methods)/sizeof(struct dbus_method) ; i++) {
- path=g_strdup_printf("org.navit_project.navit%s", dbus_methods[i].path);
+ path=g_strdup_printf("%s%s", service_name, dbus_methods[i].path);
if (dbus_message_is_method_call(message, path, dbus_methods[i].method) &&
dbus_message_has_signature(message, dbus_methods[i].signature)) {
g_free(path);
#! /usr/bin/python
import dbus
bus = dbus.SessionBus()
-conn = bus.get_object('org.navit-project.navit',
+conn = bus.get_object('org.navit_project.navit',
'/org/navit_project/navit')
iface = dbus.Interface(conn, dbus_interface='org.navit_project.navit');
iter=iface.iter();
-navit=bus.get_object('org.navit-project.navit', conn.get_navit(iter));
+navit=bus.get_object('org.navit_project.navit', conn.get_navit(iter));
iface.iter_destroy(iter);
navit_iface = dbus.Interface(navit, dbus_interface='org.navit_project.navit.navit');
navit_iface.set_center((1,0x138a4a,0x5d773f));