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 committed Nov 9, 2021
1 parent e2a0041 commit 67f5184
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/app/clusters/ota-requestor/ota-requestor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

// Interface class to abstract the OTA-related business logic. Each application
// must implement this interface. All calls must be non-blocking unless stated otherwise
class OTARequestorDriver {
class OTARequestorDriver
{
public:
// A call into the application logic to give it a chance to allow or stop the Requestor
// from proceeding with actual image download.
Expand All @@ -37,7 +38,8 @@ class OTARequestorDriver {

// Interface class to connect the OTA Software Update Requestor cluster command processing
// with the core OTA Requestor logic. The OTARequestor class implements this interface
class OTARequestorInterface {
class OTARequestorInterface
{
public:
// Handler for the AnnounceOTAProvider command
virtual bool HandleAnnounceOTAProvider(commandData_t) = 0;
Expand All @@ -47,7 +49,8 @@ class OTARequestorInterface {
};

// This class implements all of the core logic of the OTA Requestor
class OTARequestor : public OTARequestorInterface {
class OTARequestor : public OTARequestorInterface
{
public:
// Application interface declarations start

Expand All @@ -58,14 +61,15 @@ class OTARequestor : public OTARequestorInterface {
// Application interface declarations end

private:
OTARequestorDriver *driver;
OTARequestorDriver * driver;
};

// This is a platform-agnostic interface for processing downloaded
// chunks of OTA image data (data could be raw image data meant for flash or
// metadata). Each platform should provide an implementation of this
// interface.
class OTAImageProcessor {
class OTAImageProcessor
{
public:
// Open file, find block of space in persistent memory, or allocate a buffer, etc.
virtual CHIP_ERROR PrepareDownload() = 0;
Expand All @@ -86,9 +90,9 @@ class OTAImageProcessor {

// A class that abstracts the image download functionality from the particular
// protocol used for that (BDX or possibly HTTPS)
class OTADownloader : public BlockWriter {
class OTADownloader : public BlockWriter
{
public:

// API declarations start

// Application calls this method to direct OTADownloader to begin the download
Expand Down

0 comments on commit 67f5184

Please sign in to comment.