X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bf02e82ebf5cdbe3eee6b64f6a12b2a55d26fc58..9a30e26b7801d63e4ccfe8d36169299c09b89dff:/unix/uxstore.c diff --git a/unix/uxstore.c b/unix/uxstore.c index 10e33c08..6035113b 100644 --- a/unix/uxstore.c +++ b/unix/uxstore.c @@ -134,6 +134,24 @@ int read_setting_i(void *handle, const char *key, int defvalue) return atoi(val); } +int read_setting_fontspec(void *handle, const char *name, FontSpec *result) +{ + return !!read_setting_s(handle, name, result->name, sizeof(result->name)); +} +int read_setting_filename(void *handle, const char *name, Filename *result) +{ + return !!read_setting_s(handle, name, result->path, sizeof(result->path)); +} + +void write_setting_fontspec(void *handle, const char *name, FontSpec result) +{ + write_setting_s(handle, name, result.name); +} +void write_setting_filename(void *handle, const char *name, Filename result) +{ + write_setting_s(handle, name, result.path); +} + void close_settings_r(void *handle) { }