X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/c85623f918b8a6c639afc15604414f9b113bb20d..47de7565b5e6c25b90ed8a2d59de3d10f637673e:/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) { }