#include "scheme.h" #include "../any_log.h" static bool block_text_validate(block_t *block, const block_scheme_t *scheme) { if (block->text.text == NULL) { log_error("Block '%s' requires key '%s'", block->label, "text"); return false; } return true; } const block_scheme_t block_text_scheme = { .name = "text", .block = { .type = BLOCK_TEXT, }, .size = 0, .entries = NULL, .validate = block_text_validate, };