From 43238419974e599a84f17b5faa8fb52401bdfe90 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 8 Sep 2024 13:07:22 +0200 Subject: Refactor config parsing --- src/blocks/ram.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/blocks/ram.c (limited to 'src/blocks/ram.c') diff --git a/src/blocks/ram.c b/src/blocks/ram.c deleted file mode 100644 index 2190b20..0000000 --- a/src/blocks/ram.c +++ /dev/null @@ -1,22 +0,0 @@ -#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, -}; - -- cgit v1.2.3