]> git.mdlowis.com Git - proto/labwc.git/commit
rcxml: convert dotted properties into nested nodes before processing
authortokyo4j <hrak1529@gmail.com>
Wed, 9 Apr 2025 15:43:21 +0000 (00:43 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 30 Jul 2025 19:36:27 +0000 (20:36 +0100)
commit503af1050517683a7116070bb148c19a7035813d
tree0086aca481805293f3c4cf1102891c53091a1daa
parent330c55e1b248519472f33dbe26ad0c2a32781850
rcxml: convert dotted properties into nested nodes before processing

For example, the following node:

  <keybind name.action="ShowMenu" menu.action="root-menu"
            x.position.action="1" y.position.action="2" />

is converted to:

 <keybind>
   <action>
     <name>ShowMenu</name>
     <menu>root-menu</menu>
     <position>
       <x>1</x>
       <y>2</y>
     </position>
   </action>
 </keybind>

...before processing the entire xml tree. This is a preparation to prevent
breaking changes when we refactor rcxml.c to use recursion instead of
encoding nodes into dotted strings.
include/common/xml.h [new file with mode: 0644]
src/common/meson.build
src/common/xml.c [new file with mode: 0644]
src/config/rcxml.c
t/meson.build
t/xml.c [new file with mode: 0644]