-DongKyun Yun <dk77.yun@samsung.com>
-Sungmin Ha <sungmin82.ha@samsung.com>
+YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+DaiYoung Kim <daiyoung777.kim@samsung.com>
+SeokYeon Hwang <syeon.hwang@samsung.com>
+SangJin Kim <sangjin3.kim@samsung.com>
+KiTae Kim <kt920.kim@samsung.com>
+JinHyung Jo <jinhyung.jo@samsung.com>
+SungMin Ha <sungmin82.ha@samsung.com>
+MunKyu Im <munkyu.im@samsung.com>
+JiHye Kim <jihye1128.kim@samsung.com>
+GiWoong Kim <giwoong.kim@samsung.com>
+SooYoung Ha <yoosah.ha@samsnung.com>
HyunGoo Kang <hyungoo1.kang@samsung.com>
#add_definitions(-D_ESTIMATE_PERFORMANCE)
#add_definitions(-D_DEFAULT_FONT_NAME="Vera")
add_definitions(-Wall -O3 -omit-frame-pointer)
-add_definitions(-Wall -g -D_DEBUG)
+#add_definitions(-Wall -g -D_DEBUG)
add_definitions(-Iinclude)
add_library(${PROJECT_NAME} SHARED
-sf-plugin-geo-emul (0.2.3) unstable; urgency=low
-
- * add description in control file for server import
-
- -- Sungmin Ha <sungmin82.ha@samsung.com> Sat, 18 Feb 2012 13:06:52 +0900
-
-sf-plugin-geo-emul (0.2.2) unstable; urgency=low
-
- * modified for build only i386
-
- -- Sungmin Ha <sungmin82.ha@samsung.com> Sat, 18 Feb 2012 13:06:52 +0900
-
-sf-plugin-geo-emul (0.2.1) unstable; urgency=low
-
- -- Sungmin Ha <sungmin82.ha@samsung.com> Fri, 10 Feb 2012 14:00:00 +0900
-
-sf-plugin-geo-sim (0.1.2-2) unstable; urgency=low
-
- * some prevent-checking-bug fix (CID 14032 , 14031)
- * Git:165.213.180.234:/git/slp/pkgs/sf-plugin-geo-sim
- * Tag:sf-plugin-geo-sim_0.1.2-2
+sf-plugin-geo-emul (0.2.5) unstable; urgency=low
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Wed, 15 Sep 2010 18:35:26 +0900
+ * modified for prevent from unexpectedly stop
+ * Git: slp/pkgs/e/emulator-plugin-geo
+ * Tag: sf-plugin-geo-emul_0.2.5
-sf-plugin-geo-sim (0.1.2-1) unstable; urgency=low
+ -- Sungmin Ha <sungmin82.ha@samsung.com> Thu, 12 Jul 2012 15:22:00 +0900
- * change get_struct_value() & get_property()
- * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-geo-sim-0
- * Tag:sf-plugin-geo-sim_0.1.2-1
+sf-plugin-geo-emul (0.2.4) unstable; urgency=low
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Tue, 15 Jun 2010 09:58:48 +0900
+ * modified for OSP support
+ * Git: slp/pkgs/e/emulator-plugin-geo
+ * Tag: sf-plugin-geo-emul_0.2.4
-sf-plugin-geo-sim (0.1.1-1) unstable; urgency=low
+ -- Sungmin Ha <sungmin82.ha@samsung.com> Fri, 15 Jun 2012 18:48:00 +0900
- * change for new libslp-sensor APIs
- * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-geo-sim-0
- * Tag:sf-plugin-geo-sim_0.1.1-1
-
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Mon, 31 May 2010 01:17:56 +0900
-
-sf-plugin-geo-sim (0.0.4-2) unstable; urgency=low
-
- * DAC rule changed
- * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-geo-sim-0
- * Tag:sf-plugin-geo-sim_0.0.4-2
-
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Mon, 10 May 2010 21:01:46 +0900
-
-sf-plugin-geo-sim (0.0.4-1) unstable; urgency=low
-
- * add {pkg_name}.postinst.in for permission control & add free() codes when it's class constructor returned with error
- * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-geo-sim-0
- * Tag:sf-plugin-geo-sim_0.0.4-1
-
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Tue, 20 Apr 2010 13:10:18 +0900
-
-sf-plugin-geo-sim (0.0.3-1) unstable; urgency=low
+sf-plugin-geo-emul (0.2.3) unstable; urgency=low
- * add real-device checking routine ( return NULL when a real-device does not exist )
+ * modified for support updated libslp-sensor
+ * Git: slp/pkgs/e/emulator-plugin-geo
+ * Tag: sf-plugin-geo-emul_0.2.3
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Thu, 01 Apr 2010 10:34:58 +0900
+ -- Jihye kim <jihye1128.kim@samsung.com> Fri, 6 Apr 2012 20:00:00 +0900
-sf-plugin-geo-sim (0.0.2-1) unstable; urgency=low
+sf-plugin-geo-emul (0.2.2) unstable; urgency=low
- * double-execute updating bug-fix & toolchain upgrade
+ * Update changelog version.
+ * Git: slp/pkgs/e/emulator-plugin-geo
+ * Tag: sf-plugin-geo-emul_0.2.2
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Fri, 19 Mar 2010 14:29:05 +0900
+ -- Kitae kim <kt920.kim@samsung.com> Thu, 27 Mar 2012 20:00:00 +0900
-sf-plugin-geo-sim (0.0.1-1) unstable; urgency=low
+sf-plugin-geo-emul (0.2.1) unstable; urgency=low
* Initial Release.
- -- Yong-sul Oh <yongsul96.oh@samsung.com> Thu, 18 Feb 2010 12:31:00 +0900
+ -- Sungmin Ha <sungmin82.ha@samsung.com> Thu, 15 Mar 2012 17:00:00 +0900
Source: sf-plugin-geo-emul
Section: misc
Priority: extra
-Maintainer: Sungmin ha <sungmin82.ha@samsung.com>
+Maintainer: Sungmin ha <sungmin82.ha@samsung.com>,Jihye Kim <jihye1128.kim@samsung.com>,Yeongkyoon Lee <yeongkyoon.lee@samsung.com>
Build-Depends: libsf-common-dev
-Standards-Version: 0.2.1
+Standards-Version: 0.2.5
Package: sf-plugin-geo-emul
Section: misc
-This is sf-plugin-gp2ap002ambi, written and maintained by Yongsul Oh <yongsul96.oh@samsung.com>
-on Mon, 30 Nov 2009 16:09:50 +0900.
-The original source can always be found at:
- ftp://slp.samsung.net/dists/unstable/main/source/
-
-Copyright Holder: $NAME
-
-License:
- samsung
-
-/*
- * Copyright (c) 2008 Samsung Electronics, Inc.
- * All rights reserved.
- *
- * This software is a confidential and proprietary information
- * of Samsung Electronics, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Samsung Electronics.
- */
*
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
- * Contact: Sungmin Ha <sungmin82.ha@samsung.com>
+ * Contact:
+ * SooYoung Ha <yoosah.ha@samsnung.com>
+ * Sungmin Ha <sungmin82.ha@samsung.com>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
public:
enum geo_sim_data_id {
- GEO_BASE_DATA_SET = (0x0004<<16) | 0x0001,
+ GEOMAGNETIC_BASE_DATA_SET = (0x0004<<16) | 0x0001,
+ GEOMAGNETIC_RAW_DATA_SET = (0x0004<<16) | 0x0001,
+ GEOMAGNETIC_ATITUDE_DATA_SET = (0x0004<<16) | 0x0002,
};
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
--- /dev/null
+#git:/slp/pkgs/e/emulator-plugin-geo
+Name: sf-plugin-geo-emul
+Version: 0.2.6
+Release: 1
+Summary: ambient Plugin for sensor framework
+Group: System Environment/Libraries
+License: GNUv2
+Source0: %{name}-%{version}.tar.gz
+Source1001: packaging/sf-plugin-geo-emul.manifest
+BuildRequires: cmake
+BuildRequires: pkgconfig(sf_common)
+
+%description
+
+%prep
+%setup -q
+
+%build
+export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
+
+LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+
+make
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%clean
+make clean
+rm -rf CMakeCache.txt
+rm -rf CMakeFiles
+rm -rf cmake_install.cmake
+rm -rf Makefile
+rm -rf install_manifes.txt
+rm -rf *.so
+
+%post
+
+%postun
+
+%files
+%defattr(-,root,root,-)
+%{_prefix}/lib/sensor_framework/*.so*
+
+%changelog
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact:
+ * SooYoung Ha <yoosah.ha@samsnung.com>
* Sungmin Ha <sungmin82.ha@samsung.com>
* DongKyun Yun <dk77.yun@samsung.com>
*
#include <cgeo_sim.h>
-
+#define SENSOR_NAME "Emul_ModelId_Magnetic"
+#define SENSOR_VENDOR "Emul_Vendor"
const char *cgeo_sim::m_port[] = {"raw","tesla"};
if (fscanf(fp, "%d %d %d %d", &raw_x, &raw_y, &raw_z, &hdst) != 4) {
fclose(fp);
- return false;
+ return true;
}
fclose(fp);
if (fscanf(fp2, "%d %d %d", &tesla_x, &tesla_y, &tesla_z) != 3) {
fclose(fp2);
- return false;
+ return true;
}
fclose(fp2);
int cgeo_sim::get_property(unsigned int property_level , void *property_data)
{
- return -1;
+ base_property_struct *return_property;
+ return_property = (base_property_struct *)property_data;
+
+ if ( (property_level & 0xFFFF) == 1 ) {
+ return_property->sensor_unit_idx = IDX_UNIT_MICRO_TESLA;
+ return_property->sensor_min_range = -2000;
+ return_property->sensor_max_range = 2000;
+ return_property->sensor_resolution = 1;
+ snprintf(return_property->sensor_name, sizeof(return_property->sensor_name), SENSOR_NAME );
+ snprintf(return_property->sensor_vendor, sizeof(return_property->sensor_vendor), SENSOR_VENDOR);
+ } else if ( (property_level & 0xFFFF) == 2 ) {
+ return_property->sensor_unit_idx = IDX_UNIT_DEGREE;
+ return_property->sensor_min_range = 0;
+ return_property->sensor_max_range = 359;
+ return_property->sensor_resolution = 1;
+ } else {
+ ERR("Doesnot support property_level : %d\n",property_level);
+ return -1;
+ }
+
+ return 0;
}
int cgeo_sim::get_struct_value(unsigned int struct_type , void *struct_values)