From e248454fd57bf297cc29b9933c252502850348b8 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 29 Oct 2007 11:41:26 +0200 Subject: [PATCH] Use common dbus system connection --- src/bt-maemo.c | 3 +++ src/mapper.c | 4 +--- src/mapper.h | 9 +++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/mapper.h diff --git a/src/bt-maemo.c b/src/bt-maemo.c index ce76efd..cabaafa 100644 --- a/src/bt-maemo.c +++ b/src/bt-maemo.c @@ -9,12 +9,15 @@ /* Let this header handle all ifdefs */ #include "hildon-mapper.h" +#include "mapper.h" #include "bt-maemo-marshal.h" #include "bt.h" #include "gps.h" #include "settings.h" #include "ui-common.h" +#include "gps-conn.h" + static guint errors; static gint fd; diff --git a/src/mapper.c b/src/mapper.c index ccb8061..d830df8 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -54,8 +54,8 @@ #include #endif +#include "mapper.h" #include "hildon-mapper.h" - #include "utils.h" #include "mapper-types.h" #include "settings.h" @@ -72,8 +72,6 @@ #include "gpx.h" #include "config-gconf.h" -DBusConnection *dbus_conn; - gfloat UNITS_CONVERT[] = {1.85200,1.15077945,1.f,}; GdkColor COLORABLE_DEFAULT[COLORABLE_ENUM_COUNT] = { diff --git a/src/mapper.h b/src/mapper.h new file mode 100644 index 0000000..c023a85 --- /dev/null +++ b/src/mapper.h @@ -0,0 +1,9 @@ +#ifndef _MAPPER_H +#define _MAPPER_H + +#include +#include + +DBusConnection *dbus_conn; + +#endif -- 2.39.5