summaryrefslogtreecommitdiff
path: root/src/kernel/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/settings.h')
-rw-r--r--src/kernel/settings.h16
1 files changed, 16 insertions, 0 deletions
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 <stdbool.h>
+#include <stdint.h>
+
+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