Revise code (sync with the latest commercial one) 97/14997/1
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 14 Jan 2014 23:58:44 +0000 (08:58 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 14 Jan 2014 23:58:44 +0000 (08:58 +0900)
commit9e378008ec3f98e96b36af3eb25dced8cc53e2b2
tree18b022437d5960e71c286a82cd7a6fe0525b2d48
parentaaede55f33454393011ec1e0979ec0f8849f7e13
Revise code (sync with the latest commercial one)

1. Optimize the text parser (desc parser)
   ugly "realloc" is removed from the parser.
   there is only ONE memory allocation for parsing the text data.

2. Shared view concept is introduced.
   If client tries to add several instances using one package,
   viewer will creates fake handles using common real handle.
   Even if user creates 100000* dboxes, there is only A real handle.
   All other handles just duplicates its contents.
   This will save the power consumption, decrease the memory pressure, optimize the IPC overhead.

3. Refactoring the livebox handle structure. for supporiting the "2."

Change-Id: Id8607cc247fd61fde8a251858bf2d23dd2a1119d
12 files changed:
include/conf.h
include/debug.h
include/desc_parser.h
include/livebox.h
include/livebox_internal.h
packaging/liblivebox-viewer.spec
src/client.c
src/conf.c
src/desc_parser.c
src/fb.c
src/livebox.c
src/master_rpc.c