refactoring: reworked matching 18/200318/5
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 21 Feb 2019 10:56:44 +0000 (11:56 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 7 Mar 2019 07:36:35 +0000 (07:36 +0000)
commit060bdccc439b9f1a914b3d6df02eeeb1e8f1bae7
tree1ee202f861ef0078e8c0221f30b2ad0e9c0bdc55
parentc651ac5cd0bb32a74d10ceebca89c14b56213bc5
refactoring: reworked matching

This changes matching.
Previously Items had match() function with MatchItems as params.
Now, MatchItems have generic match() functions for use with both types
of Items (XML-based and serialized).
Therefore, the matching code is the same for both.

Change-Id: I68a90bd3b787c66d72fa30d5fc25e16b0634daa2
src/internal/policy.cpp
src/internal/policy.hpp
src/internal/policy_containers.cpp
src/internal/policy_containers.hpp