blob: 03d2431d3b7a8aa776a0eccc4d3a39e85d7a13fa [file] [log] [blame]
Yufeng Wang4282a072020-12-08 08:58:46 -08001/*
2 *
3 * Copyright (c) 2020 Project CHIP Authors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/**
19 * @file
20 * This file defines some of the common constants, globals and interfaces
21 * that are common to and used by CHIP example applications.
22 *
23 */
24
25#pragma once
26
Zang MingJie06be4012022-03-05 02:28:33 +080027#include <credentials/FabricTable.h>
Damian Królikb07872c2023-02-17 13:56:47 +010028#include <crypto/DefaultSessionKeystore.h>
Jean-Francois Penven33f62802022-02-11 12:50:58 -050029#include <lib/support/TestPersistentStorageDelegate.h>
Yufeng Wang4282a072020-12-08 08:58:46 -080030#include <messaging/ExchangeMgr.h>
Zang MingJiec64d9d12021-05-13 00:09:08 +080031#include <protocols/secure_channel/MessageCounterManager.h>
Zang MingJieeca9bff2021-09-23 03:19:51 +080032#include <transport/SessionManager.h>
Yufeng Wang4282a072020-12-08 08:58:46 -080033
Yufeng Wang2c5ef7b2021-01-12 13:27:51 -080034constexpr size_t kMaxTcpActiveConnectionCount = 4;
35constexpr size_t kMaxTcpPendingPackets = 4;
36constexpr size_t kNetworkSleepTimeMsecs = (100 * 1000);
Yufeng Wang4282a072020-12-08 08:58:46 -080037
Zang MingJie06be4012022-03-05 02:28:33 +080038extern chip::FabricTable gFabricTable;
Zang MingJieeca9bff2021-09-23 03:19:51 +080039extern chip::SessionManager gSessionManager;
Yufeng Wang4282a072020-12-08 08:58:46 -080040extern chip::Messaging::ExchangeManager gExchangeManager;
Zang MingJiec64d9d12021-05-13 00:09:08 +080041extern chip::secure_channel::MessageCounterManager gMessageCounterManager;
Jean-Francois Penven33f62802022-02-11 12:50:58 -050042extern chip::TestPersistentStorageDelegate gStorage;
Damian Królikb07872c2023-02-17 13:56:47 +010043extern chip::Crypto::DefaultSessionKeystore gSessionKeystore;
Yufeng Wang4282a072020-12-08 08:58:46 -080044
45void InitializeChip(void);
46void ShutdownChip(void);