implement set/get_ui_config() resurrection (#2672)

* Implement set/get_ui_config and use those methods if config string starts with 'ui.'

* use ensure! macro
This commit is contained in:
bjoern
2021-09-20 20:50:07 +02:00
committed by GitHub
parent 085a899de2
commit 3e0f601212
3 changed files with 83 additions and 19 deletions

View File

@@ -359,6 +359,11 @@ char* dc_get_blobdir (const dc_context_t* context);
* to not mess up with non-delivery-reports or read-receipts.
* 0=no limit (default).
* Changes affect future messages only.
* - `ui.*` = All keys prefixed by `ui.` can be used by the user-interfaces for system-specific purposes.
* The prefix should be followed by the system and maybe subsystem,
* eg. `ui.desktop.foo`, `ui.desktop.linux.bar`, `ui.android.foo`, `ui.dc40.bar`, `ui.bot.simplebot.baz`.
* These keys go to backups and allow easy per-account settings when using @ref dc_accounts_t,
* however, are not handled by the core otherwise.
*
* If you want to retrieve a value, use dc_get_config().
*