diff options
-rw-r--r-- | debian/changelog | 103 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 19 | ||||
-rw-r--r-- | debian/copyright | 0 | ||||
-rw-r--r-- | debian/dirs | 0 | ||||
-rw-r--r-- | debian/docs | 0 | ||||
-rw-r--r-- | debian/libslp-lbs-plugin-replay.install.in | 3 | ||||
-rw-r--r-- | debian/libslp-lbs-plugin-replay.postinst.in | 13 | ||||
-rwxr-xr-x | debian/rules | 128 | ||||
-rw-r--r-- | replay-plugin/include/gps_plugin_debug.h | 8 | ||||
-rw-r--r-- | replay-plugin/include/nmea_parser.h | 8 | ||||
-rw-r--r-- | replay-plugin/include/setting.h | 8 | ||||
-rw-r--r-- | replay-plugin/src/gps_plugin_replay.c | 54 | ||||
-rw-r--r-- | replay-plugin/src/nmea_parser.c | 8 | ||||
-rw-r--r-- | replay-plugin/src/setting.c | 8 |
15 files changed, 50 insertions, 311 deletions
diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 9a4d643..0000000 --- a/debian/changelog +++ /dev/null @@ -1,103 +0,0 @@ -libslp-lbs-plugin-replay (0.1.3-10) unstable; urgency=low - - * Reduce the size of the NMEA logging file - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-9 - - -- Minjune Kim <sena06.kim@samsung.com> Tue, 17 Jul 2012 13:23:35 +0900 - -libslp-lbs-plugin-replay (0.1.3-9) unstable; urgency=low - - * strip - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-9 - - -- Minjune Kim <sena06.kim@samsung.com> Wed, 11 Jul 2012 22:00:45 +0900 - -libslp-lbs-plugin-replay (0.1.3-8) unstable; urgency=low - - * change directory path of config files to /etc(for FOTA) - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-8 - - -- Genie Kim <daejins.kim@samsung.com> Fri, 15 Jun 2012 14:35:18 +0900 - -libslp-lbs-plugin-replay (0.1.3-7) unstable; urgency=low - - * change to use vconf location internal keys - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-7 - - -- Genie Kim <daejins.kim@samsung.com> Tue, 15 May 2012 19:53:25 +0900 - -libslp-lbs-plugin-replay (0.1.3-6) unstable; urgency=low - - * add gpgll nmea sentence - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-6 - - -- Genie Kim <daejins.kim@samsung.com> Wed, 09 May 2012 17:01:41 +0900 - -libslp-lbs-plugin-replay (0.1.3-5) unstable; urgency=low - - * Bug fix : eof of nmea log - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-5 - - -- Genie Kim <daejins.kim@samsung.com> Mon, 16 Apr 2012 16:29:00 +0900 - -libslp-lbs-plugin-replay (0.1.3-4) unstable; urgency=low - - * Bug fix: replay mode key - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-4 - - -- Genie Kim <daejins.kim@samsung.com> Fri, 13 Apr 2012 16:41:43 +0900 - -libslp-lbs-plugin-replay (0.1.3-3) unstable; urgency=low - - * Bug fix: NMEA log file path - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-3 - - -- Youngae Kang <youngae.kang@samsung.com> Sat, 07 Apr 2012 14:49:22 +0900 - -libslp-lbs-plugin-replay (0.1.3-2) unstable; urgency=low - - * change spec file - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-2 - - -- Genie Kim <daejins.kim@samsung.com> Tue, 21 Feb 2012 20:04:52 +0900 - -libslp-lbs-plugin-replay (0.1.3-1) unstable; urgency=low - - * add position valid data in sv_data - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.3-1 - - -- Minjune Kim <sena06.kim@samsung.com> Fri, 17 Feb 2012 17:12:01 +0900 - -libslp-lbs-plugin-replay (0.1.2-1) unstable; urgency=low - - * bug fix for fclose - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.2-1 - - -- Genie Kim <daejins.kim@samsung.com> Wed, 15 Feb 2012 11:10:09 +0900 - -libslp-lbs-plugin-replay (0.1.1-1) unstable; urgency=low - - * Add manual replay mode for SDK - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.1-1 - - -- Genie Kim <daejins.kim@samsung.com> Wed, 01 Feb 2012 16:18:43 +0900 - -libslp-lbs-plugin-replay (0.1.0-1) unstable; urgency=low - - * Initial Release. - * Git: framework/location/libslp-lbs-plugin-replay - * Tag: libslp-lbs-plugin-replay_0.1.0-1 - - -- Genie Kim <daejins.kim@samsung.com> Mon, 26 Sep 2011 00:00:00 +0900 diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/control b/debian/control deleted file mode 100644 index ce7b202..0000000 --- a/debian/control +++ /dev/null @@ -1,19 +0,0 @@ -Source: libslp-lbs-plugin-replay -Section: devel -Priority: extra -Maintainer: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, Genie Kim <daejins.kim@samsung.com> -Uploaders: Genie Kim <daejins.kim@samsung.com> -Build-Depends: debhelper (>= 4.0.0), autotools-dev, gps-manager-plugin-dev, libglib2.0-dev, libvconf-dev, vconf-internal-keys-dev, dlog-dev -Standards-Version: 0.1.0 - -Package: libslp-lbs-plugin-replay -Section: libs -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, libglib2.0-0, libvconf-0, libdlog-0 -Description: GPS manager plugin library for replay mode - -Package: libslp-lbs-plugin-replay-dbg -Section: debug -Architecture: any -Depends: libslp-lbs-plugin-replay (= ${Source-Version}) -Description: GPS manager plugin library for replay mode (for debugging) diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index e69de29..0000000 --- a/debian/copyright +++ /dev/null diff --git a/debian/dirs b/debian/dirs deleted file mode 100644 index e69de29..0000000 --- a/debian/dirs +++ /dev/null diff --git a/debian/docs b/debian/docs deleted file mode 100644 index e69de29..0000000 --- a/debian/docs +++ /dev/null diff --git a/debian/libslp-lbs-plugin-replay.install.in b/debian/libslp-lbs-plugin-replay.install.in deleted file mode 100644 index 8be8875..0000000 --- a/debian/libslp-lbs-plugin-replay.install.in +++ /dev/null @@ -1,3 +0,0 @@ -debian/tmp@PREFIX@/lib/libSLP-lbs-plugin-replay.so -debian/tmp@PREFIX@/lib/libSLP-lbs-plugin-replay.so.* -debian/tmp/etc/gps-manager/replay/* diff --git a/debian/libslp-lbs-plugin-replay.postinst.in b/debian/libslp-lbs-plugin-replay.postinst.in deleted file mode 100644 index 60c9f83..0000000 --- a/debian/libslp-lbs-plugin-replay.postinst.in +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -rm -rf /usr/lib/libSLP-lbs-plugin.so -ln -sf /usr/lib/libSLP-lbs-plugin-replay.so /usr/lib/libSLP-lbs-plugin.so - - -if [ "${USER}" = "root" ] -then -#Change File owner - chown root:root /etc/gps-manager/replay/nmea_replay.log - -#Change File Permission - chmod 666 /etc/gps-manager/replay/nmea_replay.log -fi diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 795f28a..0000000 --- a/debian/rules +++ /dev/null @@ -1,128 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -export DH_VERBOSE=1 - - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) - -CFLAGS ?= -Wall -g -LDFLAGS ?= -PREFIX ?= /usr -DESTDIR ?= $(CURDIR)/debian/tmp -DATADIR ?= $(DESTDIR)/etc/gps-manager - -#CFLAGS += -O0 -#CXXFLAGS += -O0 -CFLAGS += -fvisibility=hidden -Wall -fPIC -CXXFLAGS += -fvisibility=hidden -Wall -fPIC -LDFLAGS += -Wl,--as-needed -Wl,--hash-style=both - -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - ./autogen.sh - mkdir -p build - cd build && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ../configure --prefix=$(PREFIX) --datadir=$(DATADIR) - - touch $@ - -build: build-stamp -build-stamp: configure-stamp - dh_testdir - - # Add here commands to compile the package. - mkdir -p build - cd build && $(MAKE) - #docbook-to-man debian/ncurses.sgml > ncurses.1 - - for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ - cat $$f > $${f%.in}; \ - sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \ - sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \ - done - - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - - # Add here commands to clean up after the build process. - mkdir -p build - cd build - -$(MAKE) clean - -$(MAKE) distclean - cd .. - - for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ - rm -f $${f%.in}; \ - done - - find $(CURDIR) -name "Makefile.in" -exec rm -f {} \; - - dh_clean - rm -rf build - rm -rf build-aux - rm -rf m4 - rm -f aclocal.m4 config.h.in configure - -install: build - dh_testdir - dh_testroot -# dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/ncurses. - mkdir -p build - cd build && $(MAKE) DESTDIR=$(DESTDIR) install - - mkdir -p $(DATADIR)/replay - cp -a nmea-log/*.log $(DATADIR)/replay - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - dh_install #--sourcedir=debian/tmp -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python -# dh_installinit -# dh_installcron -# dh_installinfo - dh_installman - dh_link - dh_strip --dbg-package=libslp-lbs-plugin-replay-dbg - dh_compress - dh_fixperms -# dh_perl - dh_makeshlibs - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install diff --git a/replay-plugin/include/gps_plugin_debug.h b/replay-plugin/include/gps_plugin_debug.h index daef1c7..4e38254 100644 --- a/replay-plugin/include/gps_plugin_debug.h +++ b/replay-plugin/include/gps_plugin_debug.h @@ -1,10 +1,10 @@ /* - * GPS manager replay plugin + * gps-manager replay plugin * - * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, - * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Genie Kim <daejins.kim@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/replay-plugin/include/nmea_parser.h b/replay-plugin/include/nmea_parser.h index a86c533..1726036 100644 --- a/replay-plugin/include/nmea_parser.h +++ b/replay-plugin/include/nmea_parser.h @@ -1,10 +1,10 @@ /* - * GPS manager replay plugin + * gps-manager replay plugin * - * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, - * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Genie Kim <daejins.kim@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/replay-plugin/include/setting.h b/replay-plugin/include/setting.h index 257d99d..ba04ff5 100644 --- a/replay-plugin/include/setting.h +++ b/replay-plugin/include/setting.h @@ -1,10 +1,10 @@ /* - * GPS manager replay plugin + * gps-manager replay plugin * - * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, - * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Genie Kim <daejins.kim@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/replay-plugin/src/gps_plugin_replay.c b/replay-plugin/src/gps_plugin_replay.c index 1cb8aa8..343fa6f 100644 --- a/replay-plugin/src/gps_plugin_replay.c +++ b/replay-plugin/src/gps_plugin_replay.c @@ -1,10 +1,10 @@ /* - * GPS manager replay plugin + * gps-manager replay plugin * - * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, - * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Genie Kim <daejins.kim@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ void gps_plugin_replay_pos_event(pos_data_t * data) gps_event.event_data.pos_ind.pos.ver_accuracy = data->ver_accuracy; } - //LOG_PLUGIN(DBG_LOW, "%d / %f / %f / %f", gps_event.event_data.pos_ind.pos.timestamp, gps_event.event_data.pos_ind.pos.latitude, gps_event.event_data.pos_ind.pos.longitude, gps_event.event_data.pos_ind.pos.altitude); + //LOG_PLUGIN(DBG_LOW, "%d", gps_event.event_data.pos_ind.pos.timestamp); if (g_gps_event_cb != NULL) { g_gps_event_cb(&gps_event); @@ -270,8 +270,13 @@ gboolean gps_plugin_replay_timeout_cb(gpointer data) { gboolean ret = FALSE; read_error_t err = READ_SUCCESS; - replay_timeout *timer = (replay_timeout *) data; char nmea_data[REPLAY_NMEA_SET_SIZE] = { 0, }; + replay_timeout *timer = (replay_timeout *) data; + + if (timer == NULL) { + LOG_PLUGIN(DBG_ERR, "replay handel[timer] is NULL"); + return FALSE; + } memset(timer->pos_data, 0, sizeof(pos_data_t)); memset(timer->sv_data, 0, sizeof(sv_data_t)); @@ -433,27 +438,28 @@ replay_timeout *gps_plugin_replay_timer_init() setting_notify_key_changed(VCONFKEY_LOCATION_REPLAY_MODE, replay_mode_changed_cb); timer->pos_data = (pos_data_t *) malloc(sizeof(pos_data_t)); - if (timer->pos_data == NULL) { - LOG_PLUGIN(DBG_ERR, "pos_data allocation is failed."); - free(timer); - return NULL; - } + if (timer->pos_data == NULL) { + LOG_PLUGIN(DBG_ERR, "pos_data allocation is failed."); + free(timer); + return NULL; + } + timer->sv_data = (sv_data_t *) malloc(sizeof(sv_data_t)); - if (timer->sv_data == NULL) { - LOG_PLUGIN(DBG_ERR, "sv_data allocation is failed."); - free(timer->pos_data); - free(timer); - return NULL; - } + if (timer->sv_data == NULL) { + LOG_PLUGIN(DBG_ERR, "sv_data allocation is failed."); + free(timer->pos_data); + free(timer); + return NULL; + } timer->nmea_data = (nmea_data_t *) malloc(sizeof(nmea_data_t)); - if (timer->nmea_data == NULL) { - LOG_PLUGIN(DBG_ERR, "nmea_data allocation is failed."); - free(timer->pos_data); - free(timer->sv_data); - free(timer); - return NULL; - } + if (timer->nmea_data == NULL) { + LOG_PLUGIN(DBG_ERR, "nmea_data allocation is failed."); + free(timer->pos_data); + free(timer->sv_data); + free(timer); + return NULL; + } timer->timeout_src = NULL; timer->default_context = NULL; diff --git a/replay-plugin/src/nmea_parser.c b/replay-plugin/src/nmea_parser.c index daccee5..63650dc 100644 --- a/replay-plugin/src/nmea_parser.c +++ b/replay-plugin/src/nmea_parser.c @@ -1,10 +1,10 @@ /* - * GPS manager replay plugin + * gps-manager replay plugin * - * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, - * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Genie Kim <daejins.kim@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/replay-plugin/src/setting.c b/replay-plugin/src/setting.c index 32ed340..347b39f 100644 --- a/replay-plugin/src/setting.c +++ b/replay-plugin/src/setting.c @@ -1,10 +1,10 @@ /* - * GPS manager replay plugin + * gps-manager replay plugin * - * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>, - * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com> + * Genie Kim <daejins.kim@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |