I prefer to have such handling in ruby ( like here or have wrapper for it that is called https://github.com/lslezak/yast-ruby-bindings/blob/f1a5023f73efbd08721ee9eea8e813865ed47073/src/ruby/ycp/ycp.rb#L82 It is easier to pass it prepared to C like I already did https://github.com/lslezak/yast-ruby-bindings/blob/f1a5023f73efbd08721ee9eea8e813865ed47073/src/ruby/ycp/wfm.rb#L76