X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Ftag.h;h=9d6b4aab1f9262ecd1ef43145eb3325fc4884b50;hb=7fa0f73fb284b4406bcd085ee62552891b3fa6cd;hp=f645dc91a16616199b25d96df7b93dc118e97947;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=sliver-openvswitch.git diff --git a/lib/tag.h b/lib/tag.h index f645dc91a..9d6b4aab1 100644 --- a/lib/tag.h +++ b/lib/tag.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ #ifndef TAG_H #define TAG_H 1 -#include #include #include #include "util.h" @@ -75,7 +74,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 +106,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);