Bugs are fixed and new features are introduced
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 19 Mar 2013 10:10:21 +0000 (10:10 +0000)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 19 Mar 2013 10:20:08 +0000 (10:20 +0000)
commit2cef23b3e9154a4a27c9bfafd8ad040289dfd4f0
treed38e678867a63e071a3203764c81270b2e534f84
parent20ffd2b84e82ada377db38a77451331174f2596f
Bugs are fixed and new features are introduced

1. Focus based event sending. (mouse event & master)

   Optimize the input event routing code.

   Input event can be gathered by event device directly.
   To save the resource for mouse event handling.

   If the viewer select a box using content_event(SET),
   the provider will send all mouse event to the selected box without any concerning of viewer.
   Currently the viewer sends all mouse event via master to boxes.
   But this new concept will reduce the IPC overhead by sending them to the box directly.

   If the viewer unselect a box using content_event(UNSET),
   the provider will stop to send events to box.

2. Fixed bugs of code for handling the case of failed to launch a slave provider.

   If the slave provider didn't answers after launch it to the master,
   The master will handles it as faulted box.
   In that case, the master didn't care the resources of slave provider in core.
   So it could make the resource leak.

   This patch will fix it.
   Even if the slave didn't send hello message, so it would be faulted,
   the master will clear the resources correctly.

3. Initiate script bug is fixed (for the F/W developer)

   When the developer tries to start the master daemon twice, a new process will be launched.
   This is not to be happens, so this patch will fix it.
   When the developer tries to launch daemon again via data-provider-master script (init.d),
   It will check the running process first.
   If it find one, the scrip will be finished with error code, to prevent multiple daemon running.

4. Event device path is added to conf.

   We have the configuration file. Which includes many variable informations for making adaptable dameon.
   This patch will add new entry "input".
   It will be used to monitor the input device for case 1.

Change-Id: Iaf07a3c7ff5aab077ac244d2f3d8ac39db2145b2
17 files changed:
CMakeLists.txt
data/baltic.conf.ini
data/data-provider-master
data/private.conf.ini
include/conf.h
include/event.h [new file with mode: 0644]
include/instance.h
include/script_handler.h
packaging/data-provider-master.spec
src/conf.c
src/event.c [new file with mode: 0644]
src/instance.c
src/main.c
src/script_handler.c
src/server.c
src/slave_life.c
src/slave_rpc.c