// // Copyright (c) ZeroC, Inc. All rights reserved. // #ifndef UTIL_H #define UTIL_H #include #include #include #include namespace IceStorm { // // Forward declarations. // class Instance; using SubscriberMap = IceDB::Dbi; using LLUMap = IceDB::Dbi; const std::string lluDbKey = "_manager"; } namespace IceStormInternal { std::string identityToTopicName(const Ice::Identity&); Ice::Identity nameToIdentity(const std::shared_ptr&, const std::string&); std::string describeEndpoints(const std::shared_ptr&); int compareSubscriberRecordKey(const MDB_val* v1, const MDB_val* v2); IceStormElection::LogUpdate getIncrementedLLU(const IceDB::ReadWriteTxn&, IceStorm::LLUMap&); } #endif