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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user