work-around for garbage in LSMethod flags value

:Release Notes:
Work-around for clients that puts garbage in LSMethod flags and accidentally
turns on validation without providing schema to validate against.

:Detailed Notes:
- make having LUNA_METHOD_FLAG_VALIDATE_IN without schema to be non-fatal case
- report all strange combination of flags

:Testing Performed:
unit/integration tests under desktop

:QA Notes:

:Issues Addressed:
[BHV-1592] Implement optional validation of received payload

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I5673a0b8aa58e82f617212f3144067c60c4774a5
Reviewed-on: https://g2g.palm.com/5624
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Andrii Zora <andrii.zora@lge.com>
Remove reference to service from LS::Message

:Release Notes:

:Detailed Notes:

:Testing Performed:
Build and unit tests

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I1acbf3b015c582341eb8a8e86dc0d95ed5630324
Reviewed-on: https://g2g.palm.com/5637
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Enable memory checker for integration tests

:Release Notes:
Let valgrind trace child processes ignoring leaks from system
binaries.

:Detailed Notes:
There're still a few valgrind complaints to investigate. That should
be done in a different task.

:Testing Performed:
make && make ExperimentalMemCheck

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I8285122e2de734531e4906905e11f74a0933d307
Reviewed-on: https://g2g.palm.com/5652
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Implement copy constructor/assignment for Message

:Release Notes:

:Detailed Notes:

:Testing Performed:
Build and integration tests

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: If24bd23938862e952888022492184234a5376c47
Reviewed-on: https://g2g.palm.com/5638
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Force users to register categories with leading slash

:Release Notes:
Force users to register categories with leading slash

:Detailed Notes:

:Testing Performed:
Unit tests + minibat

:QA Notes:

:Issues Addressed:
[BHV-6670] Fix LSHandleGetCategory() without leading slash

Open-webOS-DCO-1.0-Signed-off-by: Alekseyev Oleksandr<alekseyev.oleksandr@lge.com>

Change-Id: I5fa69300b2833ed249a063eb40e6eea56a026980
Reviewed-on: https://g2g.palm.com/5621
Reviewed-by: DCO Verification
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Create integration test from C examples

:Release Notes:
Move example code from doxygen comments to compiled files.

:Detailed Notes:

:Testing Performed:
Build and run integration tests

:QA Notes:

:Issues Addressed:
[GF-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I34f2755ea8106bcdf2488be1bbf9bae437e2a320
Reviewed-on: https://g2g.palm.com/5622
Reviewed-by: DCO Verification
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Oleksii Rudenko <oleksii.rudenko@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Remove examples of deprecated use

:Release Notes:

:Detailed Notes:

:Testing Performed:
make && make test

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I15031914fba539cf9f04aed764296e05d0155237
Reviewed-on: https://g2g.palm.com/5623
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Oleksii Rudenko <oleksii.rudenko@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Implement C++ server/client example

:Release Notes:

:Detailed Notes:

:Testing Performed:
Build and integration tests

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: If564d808c432f562d0e566c97310e6853c4372a9
Reviewed-on: https://g2g.palm.com/5640
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Oleksii Rudenko <oleksii.rudenko@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Let LS::Call work with LS::Message

:Release Notes:
Using C++ class is simpler and safer.

:Detailed Notes:

:Testing Performed:
Build and integration tests

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: Ia5c46b6644d30a063411863f0b5c29f4e21044ad
Reviewed-on: https://g2g.palm.com/5639
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Oleksii Rudenko <oleksii.rudenko@lge.com>
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Fix monitor pending connections in hub

:Release Notes:
Fix retrieving of unique_name from pending monitor
messages.

:Detailed Notes:

:Testing Performed:
Unit-tests. MiniBAT

:QA Notes:

:Issues Addressed:
[BHV-4555] ls-monitor does not output traffic initiated
           by clients which have no root permissions

Open-webOS-DCO-1.0-Signed-off-by: Alexandr Smoktal <alexandr.smoktal@lge.com>

Change-Id: I09f79ab2fe7b6b991be2f7571aa00ced94317a65
Reviewed-on: https://g2g.palm.com/5659
Reviewed-by: DCO Verification
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Tested-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Add monitor messages on reception

:Release Notes:
Add monitor messages on reception.
Add timestamps to monitor messages.
Fix sort-by-timestamps behavior.

:Detailed Notes:
Now monitor gets messages copies on reception
as well as on transmission. Also timestams were added
to message copies, to monitor activity more precisely.

:Testing Performed:
Unit-tests. MiniBAT.

:QA Notes:

:Issues Addressed:
[BHV-6153] timestamps in ls-monitor output do not always reflect the order in which events occurred in the system

Open-webOS-DCO-1.0-Signed-off-by: Alexandr Smoktal <alexandr.smoktal@lge.com>

Change-Id: I5805f4774b72e84b2245a6ea906c8b8876a8b2f5
Reviewed-on: https://g2g.palm.com/5625
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Add example of using member functions

:Release Notes:

:Detailed Notes:

:Testing Performed:
Integration tests

:QA Notes:

:Issues Addressed:
[BHV-1546] Develop showcase examples

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I14454d43d5b6812352f367c6932802d1e9cf7b67
Reviewed-on: https://g2g.palm.com/5657
Reviewed-by: DCO Verification
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Merge branch 'bhv-1546-examples' into develop

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: Ib62ffea00da9c95037fa8902a2a963da21583f4d
fix tests and defs bug for category descriptions

:Release Notes:
Fixed an issue met when definitions per category used but no definitions for
specific schemas in that category.

:Detailed Notes:
- added test to reproduce bug
- added proper handling of missing definitions in call/reply schemas
- fixed other tests that built wrong category schema

:Testing Performed:
unit/integration tests under desktop

:QA Notes:

:Issues Addressed:
[BHV-1592] Implement optional validation of received payload

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: Icbda7a49dda3d7f01f14280586ed6dd1898bef41
Reviewed-on: https://g2g.palm.com/5666
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Oleksii Rudenko <oleksii.rudenko@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
prepare introspection for multiple views

:Release Notes:

:Detailed Notes:
- split TestCategoryIntrospection into two scenarios
- extract service description building for switching on call params

:Testing Performed:
unit/integration tests under desktop build

:QA Notes:

:Issues Addressed:
[BHV-1590] Develop introspection methods

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I28670f5167176ef947fffcfde016f33d3d0666d8
Reviewed-on: https://g2g.palm.com/5655
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
implement extended service introspection

:Release Notes:
Introduce {"type":"description"} parameter for introspection call

:Detailed Notes:
- add handling for "description" type of introspection
- enable appropriate test
- added bad case tests

:Testing Performed:
unit/integration tests under desktop

:QA Notes:

:Issues Addressed:
[BHV-1590] Develop introspection methods

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I5e46bbdf560010ffa16f91128a29b7c63cf74d57
Reviewed-on: https://g2g.palm.com/5658
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
add effective methods test and fix exposed bug

:Release Notes:
Fixed issue caused a segfault during second subsequent
LSCategorySetDescription for same category.

:Detailed Notes:
- added a test for checking that methods that are not described
  returned in "description" introspection as well and that only
  available methods are returned (i.e. do not return those which have
  description but have no valid entry in methods table).
- fixed a bug found when second call to LSCategorySetDescription were
  made for same category (code from BHV-1592)

:Testing Performed:
unit/integration tests under desktop

:QA Notes:

:Issues Addressed:
[BHV-1590] Develop introspection methods
[BHV-1592] Implement optional validation of received payload

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: Ic6f352f4483d429e40262eed33f1885859f9540d
Reviewed-on: https://g2g.palm.com/5663
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
refactor lserror_pbnjson into simple_pbnjson

:Release Notes:

:Detailed Notes:
- move code from lserror_pbnjson to simple_pbnjson
- factor out jvalue_shallow from category to simple_pbnjson for using
  in multiple places

:Testing Performed:
unit/integration tests on desktop

:QA Notes:

:Issues Addressed:
[BHV-1590] Develop introspection methods

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I28a535c1e680f8b59acfd64a93495ada4b63ff5c
Reviewed-on: https://g2g.palm.com/5667
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
make descr introspection output available methods

:Release Notes:
Make description type introspection report all available methods and
skip those which are present in category description but have no real
callbacks.

:Detailed Notes:
- enabled test for effective methods
- added methods syncup/build for description type introspection

:Testing Performed:
unit/integration tests under desktop

:QA Notes:

:Issues Addressed:
[BHV-1590] Develop introspection methods

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I24621908388c7addfaab4c86bb93755a87825fd2
Reviewed-on: https://g2g.palm.com/5668
Reviewed-by: DCO Verification
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Add introspection to ls-monitor

:Release Notes:
Add '-i/--introspection' command-line option to
query list of service categories, methods and
their description.

:Detailed Notes:

:Testing Performed:
Unit-tests. MiniBAT

:QA Notes:

:Issues Addressed:
[BHV-1591] Enhance ls-monitor to query category description

Open-webOS-DCO-1.0-Signed-off-by: Alexandr Smoktal <alexandr.smoktal@lge.com>

Change-Id: I4f7a49bcc8b5471605561038f023e6121a5fc28f
Reviewed-on: https://g2g.palm.com/5690
Reviewed-by: DCO Verification
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Tested-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>