1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-12 20:05:48 +01:00

Added a function to get all keys in a user defaults database (for databases

with dynamic contents, where the keys are not known in advance, like a
user = password; type UD database).
This commit is contained in:
dan
2000-04-12 01:45:42 +00:00
parent ccd419500f
commit 51a638e821
2 changed files with 16 additions and 1 deletions

View File

@@ -411,6 +411,16 @@ WMGetDefaultsFromPath(char *path)
}
/* Returns a PLArray with all keys in the user defaults database.
* Free the returned array with PLRelease() when no longer needed,
* but do not free the elements of the array! They're just references. */
proplist_t
WMGetUDAllKeys(WMUserDefaults *database)
{
return PLGetAllDictionaryKeys(database->defaults);
}
proplist_t
WMGetUDObjectForKey(WMUserDefaults *database, char *defaultName)
{