]> err.no Git - mapper/blobdiff - src/iap.c
Parse directly but update informations in callbacks only if we got a sentence that...
[mapper] / src / iap.c
index abf09a34aa09dfe9f506b5b60dee972d3d3ae6c6..61d243be517e89889093eb51fea772966451e8a8 100644 (file)
--- a/src/iap.c
+++ b/src/iap.c
@@ -1,5 +1,32 @@
+/*
+ * This file is part of mapper
+ *
+ * Copyright (C) 2007 Kaj-Michael Lang
+ * Copyright (C) 2006-2007 John Costigan.
+ *
+ * POI and GPS-Info code originally written by Cezary Jackiewicz.
+ *
+ * Default map data provided by http://www.openstreetmap.org/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
 #include <config.h>
 
+#include <glib.h>
+
 #ifdef WITH_OSSO
 #include <libosso.h>
 
@@ -97,8 +124,13 @@ return iap_connected;
 
 #endif
 
-#ifdef WITH_CONIC
+/*************************************************************/
+/*
+ * libconic
+ *
+ */
 
+#ifdef WITH_CONIC
 static ConIcConnection *connection=NULL;
 
 static void 
@@ -149,6 +181,10 @@ return con_ic_connection_connect(connection, CON_IC_CONNECT_FLAG_NONE);
 gboolean
 iap_is_connected(void)
 {
+#ifdef MAEMO_SDK_DEBUG
+g_printerr("SDK: Assuming connection is ok.\n");
+return TRUE;
+#endif
 return iap_connected;
 }