halcc: Fix parser to accept <hal-module> instead of <hal> 93/311493/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 22 May 2024 02:18:59 +0000 (11:18 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 22 May 2024 02:19:27 +0000 (11:19 +0900)
Change-Id: Ie3aabd00c9c25b2f5d5da58719e63821346476d6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/hal-api-compatibility-checker-parser.c
tests/unittest/test-hal-manifest/test-device-manifest.xml
tests/unittest/test-hal-manifest/test-tdm-manifest.xml

index 3b6b61356798040429cbc6b44c5d823e88065089..28ce7682c244a90619cb2132a13e48cc2ac341a6 100644 (file)
@@ -70,7 +70,7 @@ static int parse_hal(xmlNode *node, halcc_manifest *manifest)
        assert(node);
        assert(manifest);
 
-       if (!xmlStrEqual(node->name, "hal"))
+       if (!xmlStrEqual(node->name, "hal-module"))
                return -EINVAL;
 
        for (xmlNode *child = node->children; child; child = child->next) {
index 362de63f0357f337bbc03c96315d4a863733f6a3..858c959a51303899487b94d915279ebc354c436b 100644 (file)
@@ -1,22 +1,22 @@
 <root>
        <manifest platform-version="9.0">
-               <hal>
+               <hal-module>
                        <name>HAL_MODULE_DEVICE_DISPLAY</name>
                        <version>1.2</version>
-               </hal>
+               </hal-module>
        </manifest>
        <manifest platform-version="10.0">
-               <hal>
+               <hal-module>
                        <name>HAL_MODULE_DEVICE_DISPLAY</name>
                        <version>2.0</version>
-               </hal>
+               </hal-module>
        </manifest>
        <manifest platform-version="11.0">
-               <hal>
+               <hal-module>
                        <name>HAL_MODULE_DEVICE_DISPLAY</name>
                        <version>2.1</version>
                        <version>3.0</version>
-               </hal>
+               </hal-module>
        </manifest>
 </root>
 
index 12d9ee07095e61d7ce2156f7566a8d1ad1b7d1e6..abcd213daaf3051eb6e46cf7a28df30e75a4c8ed 100644 (file)
@@ -1,21 +1,21 @@
 <root>
        <manifest platform-version="9.0">
-               <hal>
+               <hal-module>
                        <name>HAL_MODULE_TDM</name>
                        <version>5.5</version>
-               </hal>
+               </hal-module>
        </manifest>
        <manifest platform-version="10.0">
-               <hal>
+               <hal-module>
                        <name>HAL_MODULE_TDM</name>
                        <version>5.5</version>
-               </hal>
+               </hal-module>
        </manifest>
        <manifest platform-version="11.0">
-               <hal>
+               <hal-module>
                        <name>HAL_MODULE_TDM</name>
                        <version>5.5</version>
-               </hal>
+               </hal-module>
        </manifest>
 </root>