sensord: fix the bug related to get sensor all list 73/57773/1
authorkibak.yoon <kibak.yoon@samsung.com>
Fri, 22 Jan 2016 12:54:52 +0000 (21:54 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Fri, 22 Jan 2016 12:54:52 +0000 (21:54 +0900)
commit251cafa7846dee1a00f98ead3a32b19db96fd72d
tree9564f615a1d9c57d74a0a2f987d9ee49f22c3286
parent00225d7077779a4c3aae751dff4b2b5f6457d388
sensord: fix the bug related to get sensor all list

there is a problem the way that sensor_raw_map is initialized
using types obtained from sensor plugin.
it changes the order of sensors.

so this patch changes it to the simple and correct way:
  1. get the supported sensor type list
  2. get the sensor list by type and put them to map in order

Change-Id: I09975ef84bb80049caca9a20bdf0d4dd6b164b51
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/server/command_worker.cpp
src/server/sensor_loader.cpp.in
src/server/sensor_loader.h