From 4bed9212041d94d52e55e624bd081fcbf01ee04e Mon Sep 17 00:00:00 2001 From: Patrick Benavoli Date: Thu, 27 Oct 2011 14:18:00 +0200 Subject: PFW: Dynamic parameter access BZ: 13272 Added dynamic parameter setting / getting interface for hosting platforms This new API allows: - getting any parameter - setting any parameter as long as it is rogue (attached to no domains) Passed parameter values are in the form of strings. Change-Id: I01a34597fcb4dafb225519cbc01dfffb22b5d52a Signed-off-by: Patrick Benavoli Reviewed-on: http://android.intel.com:8080/22629 Reviewed-by: Centelles, Sylvain Tested-by: Barthes, FabienX Reviewed-by: buildbot Tested-by: buildbot Reviewed-on: http://android.intel.com:8080/26781 Reviewed-by: Barthes, FabienX --- parameter/ParameterMgr.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'parameter/ParameterMgr.h') diff --git a/parameter/ParameterMgr.h b/parameter/ParameterMgr.h index ef2bd90..857034a 100644 --- a/parameter/ParameterMgr.h +++ b/parameter/ParameterMgr.h @@ -110,6 +110,10 @@ public: // Configuration application bool applyConfigurations(string& strError); + // Dynamic parameter handling + bool setValue(const string& strPath, const string& strValue, bool bRawValueSpace, string& strError); + bool getValue(const string& strPath, string& strValue, bool bRawValueSpace, bool bHexOutputRawFormat, string& strError) const; + //////////// Tuning ///////////// // Tuning mode bool setTuningMode(bool bOn, string& strError); @@ -238,6 +242,10 @@ private: // For tuning, check we're in tuning mode bool checkTuningModeOn(string& strError) const; + // Parameter access + bool doSetValue(const string& strPath, const string& strValue, bool bRawValueSpace, bool bDynamicAccess, string& strError); + bool doGetValue(const string& strPath, string& strValue, bool bRawValueSpace, bool bHexOutputRawFormat, bool bDynamicAccess, string& strError) const; + // Framework global configuration loading bool loadFrameworkConfiguration(string& strError); -- cgit v1.1