From eae7442610215e55ea350c65aab4ab3869111014 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 19 Feb 2021 22:24:08 -0500 Subject: kernel settings file --- src/kernel/settings.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/kernel/settings.h (limited to 'src/kernel/settings.h') diff --git a/src/kernel/settings.h b/src/kernel/settings.h new file mode 100644 index 0000000..f25d4df --- /dev/null +++ b/src/kernel/settings.h @@ -0,0 +1,16 @@ +#ifndef SETTINGS_H +#define SETTINGS_H + +#include "window.h" + +#include +#include + +void init_settings(); + +//lengths do not include null terminator. if setting value is too long, it is cropped. +bool try_get_sz_setting(const char *name, char *out, uint32_t max_len, uint32_t *len_out); + +bool try_get_color_setting(const char *name, struct pixel *out); + +#endif \ No newline at end of file -- cgit v1.2.3