client: add tag_mask attribute

The "tagtypes" command now has several sub commands which can be used
to edit that mask.
This commit is contained in:
Max Kellermann
2017-02-07 16:52:59 +01:00
parent 599d77643b
commit 29453ba196
10 changed files with 175 additions and 21 deletions

View File

@@ -40,8 +40,10 @@ tag_print(Response &r, TagType type, const char *value)
void
tag_print_values(Response &r, const Tag &tag)
{
const auto tag_mask = r.GetTagMask();
for (const auto &i : tag)
tag_print(r, i.type, i.value);
if (tag_mask.Test(i.type))
tag_print(r, i.type, i.value);
}
void