X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Ftag.h;h=2050de0b2febb93ed9ce3696bf1b1c1938a787bc;hb=9d232a6d578e1283c543b0a40f5915e39813ac21;hp=f645dc91a16616199b25d96df7b93dc118e97947;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/lib/tag.h b/lib/tag.h index f645dc91..2050de0b 100644 --- a/lib/tag.h +++ b/lib/tag.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,7 +75,7 @@ static inline bool tag_intersects(tag_type, tag_type); static inline bool tag_is_valid(tag_type); /* Returns true if 'a' and 'b' have at least one tag in common, - * false if their set of tags is disjoint. . */ + * false if their set of tags is disjoint. */ static inline bool tag_intersects(tag_type a, tag_type b) { @@ -107,6 +107,7 @@ struct tag_set { void tag_set_init(struct tag_set *); void tag_set_add(struct tag_set *, tag_type); +void tag_set_union(struct tag_set *, const struct tag_set *); static inline bool tag_set_is_empty(const struct tag_set *); static inline bool tag_set_intersects(const struct tag_set *, tag_type);