modules: move 'content' and 'anchors' to MODULE_COMMON_ATTRS

All modules implement these. The only one that differs is the i3
module. It still implements them, but 'content' uses an internal
verifier function.
This commit is contained in:
Daniel Eklöf 2020-01-24 21:08:39 +01:00
parent 36e5dc0df8
commit 86522d653d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
13 changed files with 3 additions and 23 deletions

View file

@ -34,6 +34,8 @@ struct exposable *module_begin_expose(struct module *mod);
/* List of attributes *all* modules implement */
#define MODULE_COMMON_ATTRS \
{"content", true, &conf_verify_particle}, \
{"anchors", false, NULL}, \
{"font", false, &conf_verify_font}, \
{"foreground", false, &conf_verify_color}, \
{NULL, false, NULL}