summaryrefslogtreecommitdiff
path: root/src/kernel/settings.h
blob: f25d4dfa7b67e77371e6080d4da8a38d087c1e87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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