Skip to content

Commit c947a63

Browse files
committed
cm: networkmanager: move CONNECTIONS_PER_INSTANCE_MAX_COUNT to CM
Move AOS_CONFIG_NETWORKMANAGER_CONNECTIONS_PER_INSTANCE_MAX_COUNT to CM config. Signed-off-by: Oleksandr Grytsov <[email protected]>
1 parent e1b6da0 commit c947a63

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/core/cm/config.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@
77
#ifndef AOS_CORE_CM_CONFIG_HPP_
88
#define AOS_CORE_CM_CONFIG_HPP_
99

10+
/**
11+
* Max number of service instance connections.
12+
*/
13+
#ifndef AOS_CONFIG_NETWORKMANAGER_CONNECTIONS_PER_INSTANCE_MAX_COUNT
14+
#define AOS_CONFIG_NETWORKMANAGER_CONNECTIONS_PER_INSTANCE_MAX_COUNT 16
15+
#endif
16+
1017
#endif

src/core/cm/networkmanager/networkmanager.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef AOS_CORE_CM_NETWORKMANAGER_HPP_
88
#define AOS_CORE_CM_NETWORKMANAGER_HPP_
99

10+
#include <core/cm/config.hpp>
1011
#include <core/common/types/types.hpp>
1112

1213
namespace aos::cm::networkmanager {

src/core/common/config.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,11 +1223,4 @@
12231223
#define AOS_CONFIG_TIMERS_MAX_COUNT 32
12241224
#endif
12251225

1226-
/**
1227-
* Max number of service instance connections.
1228-
*/
1229-
#ifndef AOS_CONFIG_NETWORKMANAGER_CONNECTIONS_PER_INSTANCE_MAX_COUNT
1230-
#define AOS_CONFIG_NETWORKMANAGER_CONNECTIONS_PER_INSTANCE_MAX_COUNT 16
1231-
#endif
1232-
12331226
#endif

0 commit comments

Comments
 (0)