SettingsBackend.flattenTree

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. Since 2.26

class SettingsBackend
static
void
flattenTree
(,
out string path
,
out string[] keys
,)

Parameters

tree BBTree

a GTree containing the changes

path string

the location to save the path. out

keys string[]

the location to save the relative keys. out[transfer container][array zero-terminated=1]

values Variant[]

the location to save the values, or NULL. out[allow-none][transfer container][array zero-terminated=1]

Meta