summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterMgrPlatformConnector.cpp
diff options
context:
space:
mode:
authorKevin Rocard <kevinx.rocard@intel.com>2013-07-10 18:28:10 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:04:07 +0100
commitecf9310061f47da0fd9f3d604e8b20f4fcb5749c (patch)
tree6c92949c898ffbc9f53b5e9be0beea64f47d9ceb /parameter/ParameterMgrPlatformConnector.cpp
parent6be8035935a21661833bddd3803e279652e81416 (diff)
downloadexternal_parameter-framework-ecf9310061f47da0fd9f3d604e8b20f4fcb5749c.zip
external_parameter-framework-ecf9310061f47da0fd9f3d604e8b20f4fcb5749c.tar.gz
external_parameter-framework-ecf9310061f47da0fd9f3d604e8b20f4fcb5749c.tar.bz2
Add missing subsystem policy
BZ: 122982 When the PFW starts it loads subsystems using there corresponding plugin. If the requested plugin is not found, the start fails. This is a problem, as for host, the plugins are not compiled. Add a command in the public API to ignore missing subsystem. Change-Id: I7597e3fef33466638191ff70b76e7faa9f979418 Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/118039 Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com> Tested-by: Barthes, FabienX <fabienx.barthes@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'parameter/ParameterMgrPlatformConnector.cpp')
-rw-r--r--parameter/ParameterMgrPlatformConnector.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/parameter/ParameterMgrPlatformConnector.cpp b/parameter/ParameterMgrPlatformConnector.cpp
index 0ef9053..d8b3936 100644
--- a/parameter/ParameterMgrPlatformConnector.cpp
+++ b/parameter/ParameterMgrPlatformConnector.cpp
@@ -28,8 +28,9 @@
#include <assert.h>
// Construction
-CParameterMgrPlatformConnector::CParameterMgrPlatformConnector(const string& strConfigurationFilePath)
- : _pParameterMgr(new CParameterMgr(strConfigurationFilePath)), _bStarted(false), _pLogger(NULL)
+CParameterMgrPlatformConnector::CParameterMgrPlatformConnector(
+ const string& strConfigurationFilePath) :
+ _pParameterMgr(new CParameterMgr(strConfigurationFilePath)), _bStarted(false), _pLogger(NULL)
{
// Logging
_pParameterMgrLogger = new CParameterMgrLogger(this);
@@ -58,7 +59,7 @@ ISelectionCriterionInterface* CParameterMgrPlatformConnector::createSelectionCri
}
// Selection criterion retrieval
-ISelectionCriterionInterface* CParameterMgrPlatformConnector::getSelectionCriterion(const string& strName)
+ISelectionCriterionInterface* CParameterMgrPlatformConnector::getSelectionCriterion(const string& strName) const
{
return _pParameterMgr->getSelectionCriterion(strName);
}
@@ -85,6 +86,23 @@ void CParameterMgrPlatformConnector::setLogger(CParameterMgrPlatformConnector::I
_pLogger = pLogger;
}
+bool CParameterMgrPlatformConnector::setFailureOnMissingSubsystem(bool bFail, string &strError)
+{
+ if (_bStarted) {
+
+ strError = "Can not set missing subsystem policy while running";
+ return false;
+ }
+
+ _pParameterMgr->setFailureOnMissingSubsystem(bFail);
+ return true;
+}
+
+bool CParameterMgrPlatformConnector::getFailureOnMissingSubsystem()
+{
+ return _pParameterMgr->getFailureOnMissingSubsystem();
+}
+
// Start
bool CParameterMgrPlatformConnector::start(string& strError)
{