halcc: Fix parser to accept <hal-api> instead of <root> 96/311496/1 accepted/tizen/unified/20240611.122614 accepted/tizen/unified/dev/20240620.010445 accepted/tizen/unified/x/20240612.025918
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 22 May 2024 02:27:11 +0000 (11:27 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 22 May 2024 02:27:11 +0000 (11:27 +0900)
Change-Id: Ibe6fbc1c1be51c2133da9eb0abe4772e23fbca2b
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 28ce7682c244a90619cb2132a13e48cc2ac341a6..2ae0f96a77841784fcc2f7c72fdc68e687e61866 100644 (file)
@@ -210,7 +210,7 @@ static int parse_xml_doc(xmlDoc *doc, halcc_manifest *manifest)
                return -EINVAL;
        }
 
-       if (!xmlStrEqual(root->name, "root")) {
+       if (!xmlStrEqual(root->name, "hal-api")) {
                printf("Invalid root node, %s\n", root->name);
                return -EINVAL;
        }
index 858c959a51303899487b94d915279ebc354c436b..7b3c9d88ef3dc561f3d8a2e7d35f40cba01acce7 100644 (file)
@@ -1,4 +1,4 @@
-<root>
+<hal-api>
        <manifest platform-version="9.0">
                <hal-module>
                        <name>HAL_MODULE_DEVICE_DISPLAY</name>
@@ -18,5 +18,5 @@
                        <version>3.0</version>
                </hal-module>
        </manifest>
-</root>
+</hal-api>
 
index abcd213daaf3051eb6e46cf7a28df30e75a4c8ed..80174c78e463aa9ac8f0c9e0a52937aa9742a007 100644 (file)
@@ -1,4 +1,4 @@
-<root>
+<hal-api>
        <manifest platform-version="9.0">
                <hal-module>
                        <name>HAL_MODULE_TDM</name>
@@ -17,5 +17,5 @@
                        <version>5.5</version>
                </hal-module>
        </manifest>
-</root>
+</hal-api>