summaryrefslogtreecommitdiff
path: root/src/kernel/settings.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-19 22:24:08 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-19 22:24:08 -0500
commiteae7442610215e55ea350c65aab4ab3869111014 (patch)
tree601aa476e52a5e3bb3b352df7e781d3aa11c090b /src/kernel/settings.h
parentcba9eec34b205c760f16f7171b58bfc906723b72 (diff)
downloadportland-os-eae7442610215e55ea350c65aab4ab3869111014.tar.gz
kernel settings file
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