summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterMgrPlatformConnector.cpp
diff options
context:
space:
mode:
authorFrancois Gaffie <francoisx.gaffie@intel.com>2012-03-13 18:35:57 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:07 +0100
commit848488afb8b2f950c01eb35444f54d93e69db570 (patch)
tree2e17be0493d7631d5ffb4480025e8735180c890e /parameter/ParameterMgrPlatformConnector.cpp
parent7fce1e3c41213f0c4ea971b0e87a7cc34b5b5181 (diff)
downloadexternal_parameter-framework-848488afb8b2f950c01eb35444f54d93e69db570.zip
external_parameter-framework-848488afb8b2f950c01eb35444f54d93e69db570.tar.gz
external_parameter-framework-848488afb8b2f950c01eb35444f54d93e69db570.tar.bz2
HAL code to be used on tablet -> enforce null pointer protection
BZ:26933 Audio HAL code is supposed to be also used on tablet. If parameter FW cannot be started, must not bailing out. This patch add a new API to ensure PF is started before calling another API of the PF. Change-Id: I2f9059acf79370fc1cfbae27256060f872fe4ad7 Signed-off-by: Francois Gaffie <francoisx.gaffie@intel.com> Reviewed-on: http://android.intel.com:8080/38892 Reviewed-by: De Chivre, RenaudX <renaudx.de.chivre@intel.com> Reviewed-by: Continente, Christophe <christophe.continente@intel.com> Reviewed-by: Wood, Brian J <brian.j.wood@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/ParameterMgrPlatformConnector.cpp')
-rw-r--r--parameter/ParameterMgrPlatformConnector.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/parameter/ParameterMgrPlatformConnector.cpp b/parameter/ParameterMgrPlatformConnector.cpp
index d99568f..815cbee 100644
--- a/parameter/ParameterMgrPlatformConnector.cpp
+++ b/parameter/ParameterMgrPlatformConnector.cpp
@@ -110,6 +110,12 @@ bool CParameterMgrPlatformConnector::start(string& strError)
return true;
}
+// Started state
+bool CParameterMgrPlatformConnector::isStarted() const
+{
+ return _bStarted;
+}
+
// Private logging
void CParameterMgrPlatformConnector::doLog(const string& strLog)
{