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 10, 2021
1 parent 5d41f87 commit 9d09e67
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/app/clusters/ota-requestor/ota-downloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

// 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
8 changes: 4 additions & 4 deletions src/app/clusters/ota-requestor/ota-image-processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

#pragma once


// 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 @@ -49,9 +49,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
3 changes: 2 additions & 1 deletion src/app/clusters/ota-requestor/ota-requestor-driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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. Returning TRUE will allow the download
Expand Down
3 changes: 2 additions & 1 deletion src/app/clusters/ota-requestor/ota-requestor-interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

// 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 Down
7 changes: 4 additions & 3 deletions src/app/clusters/ota-requestor/ota-requestor.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
* Applications implementing the OTA Requestor functionality must include this file.
*/

#include <ota-requestor-interface.h>
#include <ota-requestor-driver.h>
#include <ota-requestor-interface.h>

#pragma once

// 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 @@ -37,5 +38,5 @@ class OTARequestor : public OTARequestorInterface {
// Application interface declarations end

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

0 comments on commit 9d09e67

Please sign in to comment.