aboutsummaryrefslogtreecommitdiff
path: root/src/blocks/ram.c
blob: 2190b20521ab427c7c7932dd41f0ecef43383a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "info.h"

static bool block_ram_apply(block_t *block, void *result)
{
    return true;
}

static const config_entry_t block_ram_entries[] = {
    { "text",       CONFIG_STRING, offsetof(block_t, text.text) },
    { "text-color", CONFIG_COLOR,  offsetof(block_t, text.text_color) },
    { "text-size",  CONFIG_INT,    offsetof(block_t, text.text_size) },
    { 0 },
};

const config_block_t block_ram_info = {
    .type_name = "ram",
    .type_size = 0,
    .base = { 0 },
    .entries = block_ram_entries,
    .apply = block_ram_apply,
};