Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and lpbeliveau-silabs committed Mar 24, 2023
1 parent f2f9beb commit 57bfe4e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 80 deletions.
99 changes: 21 additions & 78 deletions src/app/server/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,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
Expand Down Expand Up @@ -209,7 +209,7 @@ struct CommonCaseDeviceServerInitParams : public ServerInitParams
CommonCaseDeviceServerInitParams() = default;

// Not copyable
CommonCaseDeviceServerInitParams(const CommonCaseDeviceServerInitParams &) = delete;
CommonCaseDeviceServerInitParams(const CommonCaseDeviceServerInitParams &) = delete;
CommonCaseDeviceServerInitParams & operator=(const CommonCaseDeviceServerInitParams &) = delete;

/**
Expand Down Expand Up @@ -344,97 +344,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; }

scenes::SceneTable<scenes::ExtensionFieldSetsImpl> * GetSceneTable()
{
return mSceneTable;
}
scenes::SceneTable<scenes::ExtensionFieldSetsImpl> * GetSceneTable() { return mSceneTable; }

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; }

/**
* This function causes the ShutDown event to be generated async on the
Expand All @@ -451,10 +397,7 @@ class Server
return System::SystemClock().GetMonotonicMicroseconds64() - mInitTimestamp;
}

static Server & GetInstance()
{
return sServer;
}
static Server & GetInstance() { return sServer; }

private:
Server() = default;
Expand Down
1 change: 0 additions & 1 deletion src/lib/core/CHIPConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,6 @@ extern const char CHIP_NON_PRODUCTION_MARKER[];
#define CHIP_CONFIG_SCENES_MAX_CLUSTERS_PER_SCENE 3
#endif


/**
* @brief The maximum size of a single extension field set for a single cluster
*/
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/DefaultStorageKeyAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace chip {
class StorageKeyName
{
public:
StorageKeyName(const StorageKeyName & other) = default;
StorageKeyName(const StorageKeyName & other) = default;
StorageKeyName & operator=(const StorageKeyName & other) = default;

~StorageKeyName() { memset(mKeyNameBuffer, 0, sizeof(mKeyNameBuffer)); }
Expand Down

0 comments on commit 57bfe4e

Please sign in to comment.