diff options
author | Patrick Benavoli <patrickx.benavoli@intel.com> | 2011-11-25 22:46:13 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-10 17:15:01 +0100 |
commit | e7a903ef0a5ee2b9d51e6f86d32c704b9ff16c21 (patch) | |
tree | 0f3cf1f23b4f7aee4f1fea5da70770f14217ee64 /parameter/VirtualSubsystem.cpp | |
parent | 79f16cc91351951a39ad3019a7dc9e4dea532551 (diff) | |
download | external_parameter-framework-e7a903ef0a5ee2b9d51e6f86d32c704b9ff16c21.zip external_parameter-framework-e7a903ef0a5ee2b9d51e6f86d32c704b9ff16c21.tar.gz external_parameter-framework-e7a903ef0a5ee2b9d51e6f86d32c704b9ff16c21.tar.bz2 |
PFW: No mapping attempt for virtual subsystems
BZ: 15710
Now virtual subsystems overload the mapping process so as to avoid any
object creation attempt.
Object creation only makes sense for concrete subsystems, i.e. those
containing actual physical parameters to be mapped.
Change-Id: Ib7a8d5978ebb79a5d5fecebe3b95cc3bd376cd8e
Signed-off-by: Patrick Benavoli <patrickx.benavoli@intel.com>
Reviewed-on: http://android.intel.com:8080/26099
Reviewed-by: Barthes, FabienX <fabienx.barthes@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter/VirtualSubsystem.cpp')
-rw-r--r-- | parameter/VirtualSubsystem.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/parameter/VirtualSubsystem.cpp b/parameter/VirtualSubsystem.cpp index ee06fe5..ed708ca 100644 --- a/parameter/VirtualSubsystem.cpp +++ b/parameter/VirtualSubsystem.cpp @@ -48,3 +48,22 @@ ISyncer* CVirtualSubsystem::getSyncer() const { return _pVirtualSyncer; } + +// From IMapper +bool CVirtualSubsystem::mapBegin(CInstanceConfigurableElement* pInstanceConfigurableElement, bool& bKeepDiving, string& strError) +{ + (void)pInstanceConfigurableElement; + (void)strError; + + // Do nothing: prevent any subsystem object from being mapped + + // Stop diving + bKeepDiving = false; + + return true; +} + +void CVirtualSubsystem::mapEnd() +{ + // Do nothing +} |