From 0548523ab6bbca766dcce4be97a0c50efd529d90 Mon Sep 17 00:00:00 2001 From: Patrick Benavoli Date: Tue, 8 Jul 2014 14:09:09 +0200 Subject: Adding XML format to Criteria export tuning I/F BZ: 209937 The "listCriteria" command returns the list of criteria in a human readable way. However, external tools that require to know this list of criteria have trouble parsing this output. An XML output would solve the issue. Changed "listCriteria" command to accept "XML" as first and only argument. In the end, listCriteria command accepts the 3 following forms: - listCriteria => will list the criteria states and type content in a human readable format - listCriteria csv|CSV => will list the criteria states and type content in a CSV format - listCriteria xml|XML => will list the criteria states and type content in an XML format Removed python binding accordingly. Change-Id: Ib060ec0a5d1ff87ba6c25caf4e0d5839a7927715 Signed-off-by: Patrick Benavoli Signed-off-by: Sebastien Gonzalve --- bindings/python/pfw.i | 4 ---- 1 file changed, 4 deletions(-) (limited to 'bindings') diff --git a/bindings/python/pfw.i b/bindings/python/pfw.i index ce27173..9dbccbd 100644 --- a/bindings/python/pfw.i +++ b/bindings/python/pfw.i @@ -169,10 +169,6 @@ public: bool exportSingleDomainXml(std::string& strXmlDest, const std::string& strDomainName, bool bWithSettings, bool bToFile, std::string& strError) const; %clear std::string& strXmlDest; - -%apply std::string &OUTPUT { std::string& strResult } - bool getSystemClassXMLString(std::string& strResult); -%clear std::string& strResult; }; // SWIG nested class support is not complete - cf. -- cgit v1.1 From 9622b059c7e819d9b69c5266252c6adae1b634bc Mon Sep 17 00:00:00 2001 From: Philippe Afonso Date: Thu, 29 Jan 2015 16:22:36 +0100 Subject: Create output host library directory if needed The directory where to generate output may not exists leading generation to failure. This patch adds the directory creation and thus makes sure generation won't fail for this reason. Change-Id: I1cee75d6d7921315dc3a928245499bde447c3639 Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-19676 Signed-off-by: Sebastien Gonzalve --- bindings/python/Android.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'bindings') diff --git a/bindings/python/Android.mk b/bindings/python/Android.mk index 296d4bc..0558344 100644 --- a/bindings/python/Android.mk +++ b/bindings/python/Android.mk @@ -76,6 +76,7 @@ $(generated-sources-dir)/pfw_wrap.h: $(generated-sources-dir)/pfw_wrap.cxx $(generated-sources-dir)/pfw_wrap.cxx: $(LOCAL_PATH)/pfw.i @echo "Generating Python binding files" mkdir -p $(dir $@) # surprisingly, path is not generated by build system + mkdir -p $(HOST_LIBRARY_PATH) prebuilts/misc/linux-x86_64/swig/swig \ -Iprebuilts/misc/common/swig/include/2.0.11/python/ \ -Iprebuilts/misc/common/swig/include/2.0.11/ \ -- cgit v1.1