flatten_tree
Description:
[ CCode ( feature_test_macro = "G_SETTINGS_ENABLE_BACKEND" ) ]
[ Version ( since = "2.26" ) ]
public static void flatten_tree (Tree<string,Variant> tree, out string path, out (unowned string)[] keys, out (unowned Variant)[] values)
[ Version ( since = "2.26" ) ]
public static void flatten_tree (Tree<string,Variant> tree, out string path, out (unowned string)[] keys, out (unowned Variant)[] values)
Calculate the longest common prefix of all keys in a tree and write out an array of the key names relative to that prefix and, optionally, the value to store at each of those keys.
You must free the value returned in path
, keys
and values
using
g_free. You should not attempt to free or unref the contents of keys
or
values
.
Parameters:
tree |
a Tree containing the changes |
path |
the location to save the path |
keys |
the location to save the relative keys |
values |
the location to save the values, or null |