mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-24 02:55:39 +02:00
config: conf_verify_dict() now assumes attr list is NULL-terminated
This commit is contained in:
parent
2df419efc2
commit
71515e4079
21 changed files with 22 additions and 34 deletions
|
@ -282,7 +282,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 4,
|
||||
.attrs = {
|
||||
{"card", true, &conf_verify_string},
|
||||
{"mixer", true, &conf_verify_string},
|
||||
|
|
|
@ -226,7 +226,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 3,
|
||||
.attrs = {
|
||||
{"name", true, &conf_verify_string},
|
||||
{"content", true, &conf_verify_particle},
|
||||
|
|
|
@ -358,7 +358,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 4,
|
||||
.attrs = {
|
||||
{"name", true, &conf_verify_string},
|
||||
{"poll-interval", false, &conf_verify_int},
|
||||
|
|
|
@ -109,7 +109,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 4,
|
||||
.attrs = {
|
||||
{"date-format", false, &conf_verify_string},
|
||||
{"time-format", false, &conf_verify_string},
|
||||
|
|
|
@ -703,7 +703,6 @@ verify_content(keychain_t *chain, const struct yml_node *node)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 5,
|
||||
.attrs = {
|
||||
{"spacing", false, &conf_verify_int},
|
||||
{"left-spacing", false, &conf_verify_int},
|
||||
|
|
|
@ -55,7 +55,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 2,
|
||||
.attrs = {
|
||||
{"content", true, &conf_verify_particle},
|
||||
{"anchors", false, NULL},
|
||||
|
|
|
@ -493,7 +493,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 4,
|
||||
.attrs = {
|
||||
{"host", true, &conf_verify_string},
|
||||
{"port", false, &conf_verify_int},
|
||||
|
|
|
@ -545,7 +545,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 3,
|
||||
.attrs = {
|
||||
{"name", true, &conf_verify_string},
|
||||
{"content", true, &conf_verify_particle},
|
||||
|
|
|
@ -579,7 +579,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 5,
|
||||
.attrs = {
|
||||
{"spacing", false, &conf_verify_int},
|
||||
{"left-spacing", false, &conf_verify_int},
|
||||
|
|
|
@ -461,7 +461,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 2,
|
||||
.attrs = {
|
||||
{"content", true, &conf_verify_particle},
|
||||
{"anchors", false, NULL},
|
||||
|
|
|
@ -323,7 +323,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
|
|||
|
||||
const struct module_info plugin_info = {
|
||||
.from_conf = &from_conf,
|
||||
.attr_count = 2,
|
||||
.attrs = {
|
||||
{"content", true, &conf_verify_particle},
|
||||
{"anchors", false, NULL},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue