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

@@ -196,8 +196,9 @@ PrintUniqueTag(Response &r, TagType tag_type,
assert(value != nullptr);
tag_print(r, tag_type, value);
const auto tag_mask = r.GetTagMask();
for (const auto &item : tag)
if (item.type != tag_type)
if (item.type != tag_type && tag_mask.Test(item.type))
tag_print(r, item.type, item.value);
}