Skip to content

Commit

Permalink
Add missing includes (#21790)
Browse files Browse the repository at this point in the history
  • Loading branch information
mspang authored Aug 10, 2022
1 parent 3885078 commit 3f2cf1d
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/app/DataVersionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#pragma once

#include <app/util/basic-types.h>
#include <lib/core/Optional.h>

namespace chip {
namespace app {
Expand Down
1 change: 1 addition & 0 deletions src/app/GlobalAttributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#pragma once

#include <app-common/zap-generated/ids/Attributes.h>
#include <lib/support/CodeUtils.h>

namespace chip {
namespace app {
Expand Down
3 changes: 3 additions & 0 deletions src/app/InteractionModelHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

#pragma once

#include <app/StatusResponse.h>
#include <system/SystemPacketBuffer.h>
#include <system/TLVPacketBufferBackingStore.h>

namespace chip {
namespace app {

Expand Down
3 changes: 3 additions & 0 deletions src/app/InteractionModelRevision.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

#pragma once

#include <inttypes.h>
#include <stddef.h>

/**
* CHIP_DEVICE_INTERACTION_MODEL_REVISION
*
Expand Down
2 changes: 2 additions & 0 deletions src/app/ReadHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include <app/EventManagement.h>
#include <app/EventPathParams.h>
#include <app/MessageDef/AttributePathIBs.h>
#include <app/MessageDef/DataVersionFilterIBs.h>
#include <app/MessageDef/EventFilterIBs.h>
#include <app/MessageDef/EventPathIBs.h>
#include <app/ObjectList.h>
#include <lib/core/CHIPCore.h>
Expand Down
1 change: 1 addition & 0 deletions src/app/clusters/ias-zone-client/ias-zone-client.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#pragma once

#include <app/util/af-types.h>
#include <app/util/basic-types.h>

typedef struct
Expand Down
4 changes: 4 additions & 0 deletions src/app/util/MatterCallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

#pragma once

#include <access/SubjectDescriptor.h>
#include <app/ConcreteAttributePath.h>
#include <app/ConcreteCommandPath.h>

void MatterPreAttributeReadCallback(const chip::app::ConcreteAttributePath & attributePath);
void MatterPostAttributeReadCallback(const chip::app::ConcreteAttributePath & attributePath);
void MatterPreAttributeWriteCallback(const chip::app::ConcreteAttributePath & attributePath);
Expand Down
4 changes: 4 additions & 0 deletions src/app/util/time-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@

#pragma once

#include <inttypes.h>

#include <app/util/af-types.h>

#define SECONDS_IN_MINUTE 60
#define SECONDS_IN_HOUR 3600
#define SECONDS_IN_DAY (SECONDS_IN_MINUTE * 60 * 24)
Expand Down
2 changes: 2 additions & 0 deletions src/credentials/tests/CHIPAttCert_test_vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#pragma once

#include <lib/support/Span.h>

namespace chip {
namespace TestCerts {

Expand Down
1 change: 1 addition & 0 deletions src/include/platform/GeneralFaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#pragma once

#include <lib/core/CHIPError.h>
#include <lib/support/CodeUtils.h>

namespace chip {
namespace DeviceLayer {
Expand Down
2 changes: 2 additions & 0 deletions src/include/platform/internal/EventLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#pragma once

#include <lib/core/CHIPError.h>

namespace chip {
namespace DeviceLayer {
namespace Internal {
Expand Down
1 change: 1 addition & 0 deletions src/lib/asn1/gen_asn1oid.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def encodeOID(oid):
#pragma once
#include <cstdint>
#include <cstddef>
namespace chip {
namespace ASN1 {
Expand Down
1 change: 1 addition & 0 deletions src/lib/support/LifetimePersistedCounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#pragma once

#include <lib/support/CHIPCounter.h>
#include <lib/support/CodeUtils.h>
#include <platform/PersistedStorage.h>

namespace chip {
Expand Down
3 changes: 2 additions & 1 deletion src/protocols/secure_channel/MessageCounterManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*
*/

#include <protocols/secure_channel/MessageCounterManager.h>

#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPEncoding.h>
#include <lib/core/CHIPKeyIds.h>
Expand All @@ -32,7 +34,6 @@
#include <messaging/Flags.h>
#include <protocols/Protocols.h>
#include <protocols/secure_channel/Constants.h>
#include <protocols/secure_channel/MessageCounterManager.h>

namespace chip {
namespace secure_channel {
Expand Down
4 changes: 2 additions & 2 deletions src/protocols/secure_channel/MessageCounterManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

#pragma once

#include <messaging/ExchangeDelegate.h>
#include <messaging/ExchangeMgr.h>
#include <protocols/Protocols.h>
#include <system/SystemPacketBuffer.h>
#include <transport/MessageCounterManagerInterface.h>

namespace chip {
namespace secure_channel {

class ExchangeManager;

class MessageCounterManager : public Messaging::UnsolicitedMessageHandler,
public Messaging::ExchangeDelegate,
public Transport::MessageCounterManagerInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <system/SystemPacketBuffer.h>
#include <transport/SessionHandle.h>
#include <transport/raw/MessageHeader.h>
#include <transport/raw/PeerAddress.h>

Expand Down
1 change: 1 addition & 0 deletions src/protocols/secure_channel/StatusReport.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <lib/support/BufferWriter.h>
#include <protocols/Protocols.h>
#include <protocols/secure_channel/Constants.h>
#include <system/SystemPacketBuffer.h>

namespace chip {
Expand Down
4 changes: 3 additions & 1 deletion src/transport/SessionDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#pragma once

#include <transport/SessionHandle.h>
#include <inttypes.h>

#include <lib/support/DLLUtil.h>

namespace chip {

Expand Down
1 change: 1 addition & 0 deletions src/transport/SessionMessageDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <transport/SessionHandle.h>
#include <transport/raw/MessageHeader.h>

namespace chip {

Expand Down

0 comments on commit 3f2cf1d

Please sign in to comment.