summaryrefslogtreecommitdiff
path: root/src/kernel/settings.h
blob: ec5e9f54d67d79f65265bd9244927df041c385b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SETTINGS_H
#define SETTINGS_H

#include "window.h"

#include <stdbool.h>
#include <stdint.h>

void init_settings();
void close_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