aboutsummaryrefslogtreecommitdiff
path: root/src/blocks/ram.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-07-13 12:27:04 +0200
committerFederico Angelilli <code@fedang.net>2024-07-13 12:27:04 +0200
commit6d0ce31b0ae5df97d4a340c54b66d95598b336a4 (patch)
tree2685adfb1450fbab6c7fb5e10e04b5e962eff236 /src/blocks/ram.c
parentf10d68879e358a2642573d408bbc47f1c759d387 (diff)
Add ram type skeleton
Diffstat (limited to 'src/blocks/ram.c')
-rw-r--r--src/blocks/ram.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/blocks/ram.c b/src/blocks/ram.c
new file mode 100644
index 0000000..2190b20
--- /dev/null
+++ b/src/blocks/ram.c
@@ -0,0 +1,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,
+};
+