From ae40e287dbb1ae882467bd206714d287af09a91e Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 3 Aug 2023 19:50:05 +0000 Subject: [PATCH] Restyled by clang-format --- src/app/server/Server.h | 99 +++++++++-------------------------------- 1 file changed, 21 insertions(+), 78 deletions(-) diff --git a/src/app/server/Server.h b/src/app/server/Server.h index bd09091c73f068..464843320a22c2 100644 --- a/src/app/server/Server.h +++ b/src/app/server/Server.h @@ -100,7 +100,7 @@ struct ServerInitParams ServerInitParams() = default; // Not copyable - ServerInitParams(const ServerInitParams &) = delete; + ServerInitParams(const ServerInitParams &) = delete; ServerInitParams & operator=(const ServerInitParams &) = delete; // Application delegate to handle some commissioning lifecycle events @@ -182,7 +182,7 @@ struct CommonCaseDeviceServerInitParams : public ServerInitParams CommonCaseDeviceServerInitParams() = default; // Not copyable - CommonCaseDeviceServerInitParams(const CommonCaseDeviceServerInitParams &) = delete; + CommonCaseDeviceServerInitParams(const CommonCaseDeviceServerInitParams &) = delete; CommonCaseDeviceServerInitParams & operator=(const CommonCaseDeviceServerInitParams &) = delete; /** @@ -316,97 +316,43 @@ class Server */ void RejoinExistingMulticastGroups(); - FabricTable & GetFabricTable() - { - return mFabrics; - } + FabricTable & GetFabricTable() { return mFabrics; } - CASESessionManager * GetCASESessionManager() - { - return &mCASESessionManager; - } + CASESessionManager * GetCASESessionManager() { return &mCASESessionManager; } - Messaging::ExchangeManager & GetExchangeManager() - { - return mExchangeMgr; - } + Messaging::ExchangeManager & GetExchangeManager() { return mExchangeMgr; } - SessionManager & GetSecureSessionManager() - { - return mSessions; - } + SessionManager & GetSecureSessionManager() { return mSessions; } - SessionResumptionStorage * GetSessionResumptionStorage() - { - return mSessionResumptionStorage; - } + SessionResumptionStorage * GetSessionResumptionStorage() { return mSessionResumptionStorage; } - app::SubscriptionResumptionStorage * GetSubscriptionResumptionStorage() - { - return mSubscriptionResumptionStorage; - } + app::SubscriptionResumptionStorage * GetSubscriptionResumptionStorage() { return mSubscriptionResumptionStorage; } - TransportMgrBase & GetTransportManager() - { - return mTransports; - } + TransportMgrBase & GetTransportManager() { return mTransports; } - Credentials::GroupDataProvider * GetGroupDataProvider() - { - return mGroupsProvider; - } + Credentials::GroupDataProvider * GetGroupDataProvider() { return mGroupsProvider; } - Crypto::SessionKeystore * GetSessionKeystore() const - { - return mSessionKeystore; - } + Crypto::SessionKeystore * GetSessionKeystore() const { return mSessionKeystore; } #if CONFIG_NETWORK_LAYER_BLE - Ble::BleLayer * GetBleLayerObject() - { - return mBleLayer; - } + Ble::BleLayer * GetBleLayerObject() { return mBleLayer; } #endif - CommissioningWindowManager & GetCommissioningWindowManager() - { - return mCommissioningWindowManager; - } + CommissioningWindowManager & GetCommissioningWindowManager() { return mCommissioningWindowManager; } - PersistentStorageDelegate & GetPersistentStorage() - { - return *mDeviceStorage; - } + PersistentStorageDelegate & GetPersistentStorage() { return *mDeviceStorage; } - app::FailSafeContext & GetFailSafeContext() - { - return mFailSafeContext; - } + app::FailSafeContext & GetFailSafeContext() { return mFailSafeContext; } - TestEventTriggerDelegate * GetTestEventTriggerDelegate() - { - return mTestEventTriggerDelegate; - } + TestEventTriggerDelegate * GetTestEventTriggerDelegate() { return mTestEventTriggerDelegate; } - Crypto::OperationalKeystore * GetOperationalKeystore() - { - return mOperationalKeystore; - } + Crypto::OperationalKeystore * GetOperationalKeystore() { return mOperationalKeystore; } - Credentials::OperationalCertificateStore * GetOpCertStore() - { - return mOpCertStore; - } + Credentials::OperationalCertificateStore * GetOpCertStore() { return mOpCertStore; } - app::DefaultAttributePersistenceProvider & GetDefaultAttributePersister() - { - return mAttributePersister; - } + app::DefaultAttributePersistenceProvider & GetDefaultAttributePersister() { return mAttributePersister; } - app::reporting::ReportScheduler * GetReportScheduler() - { - return mReportScheduler; - } + app::reporting::ReportScheduler * GetReportScheduler() { return mReportScheduler; } /** * This function causes the ShutDown event to be generated async on the @@ -423,10 +369,7 @@ class Server return System::SystemClock().GetMonotonicMicroseconds64() - mInitTimestamp; } - static Server & GetInstance() - { - return sServer; - } + static Server & GetInstance() { return sServer; } private: Server() {}