From 66e27375d86ee09ba18a8e6a85e9e50ea403aa8b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 14 May 2012 14:41:45 -0700 Subject: [PATCH] auth: EntityName ==, != operators Signed-off-by: Sage Weil --- src/common/entity_name.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/entity_name.h b/src/common/entity_name.h index 534b3afd33d54..07ac730e3bf2f 100644 --- a/src/common/entity_name.h +++ b/src/common/entity_name.h @@ -65,6 +65,8 @@ struct EntityName friend bool operator<(const EntityName& a, const EntityName& b); friend std::ostream& operator<<(std::ostream& out, const EntityName& n); + friend bool operator==(const EntityName& a, const EntityName& b); + friend bool operator!=(const EntityName& a, const EntityName& b); private: uint32_t type; @@ -76,4 +78,6 @@ uint32_t str_to_ceph_entity_type(const char * str); WRITE_CLASS_ENCODER(EntityName); +WRITE_EQ_OPERATORS_2(EntityName, type, id) + #endif -- 2.39.5