Skip to content

Commit e1b6da0

Browse files
committed
common: config: move AOS_CONFIG_MAX_NUM_EXPOSED_PORTS to types consts
Signed-off-by: Oleksandr Grytsov <[email protected]>
1 parent b446ff4 commit e1b6da0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/core/common/config.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,13 @@
540540
#define AOS_CONFIG_TYPES_FUNC_SERVICE_MAX_COUNT 16
541541
#endif
542542

543+
/**
544+
* Max number of exposed ports.
545+
*/
546+
#ifndef AOS_CONFIG_TYPES_MAX_NUM_EXPOSED_PORTS
547+
#define AOS_CONFIG_TYPES_MAX_NUM_EXPOSED_PORTS 8
548+
#endif
549+
543550
/**
544551
* Max number of outdated items.
545552
*/
@@ -1223,11 +1230,4 @@
12231230
#define AOS_CONFIG_NETWORKMANAGER_CONNECTIONS_PER_INSTANCE_MAX_COUNT 16
12241231
#endif
12251232

1226-
/**
1227-
* Max number of exposed ports.
1228-
*/
1229-
#ifndef AOS_CONFIG_MAX_NUM_EXPOSED_PORTS
1230-
#define AOS_CONFIG_MAX_NUM_EXPOSED_PORTS 8
1231-
#endif
1232-
12331233
#endif

src/core/common/types/types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ static constexpr auto cFuncServiceMaxCount = AOS_CONFIG_TYPES_FUNC_SERVICE_MAX_C
396396
/**
397397
* Max number of exposed ports.
398398
*/
399-
static constexpr auto cMaxNumExposedPorts = AOS_CONFIG_MAX_NUM_EXPOSED_PORTS;
399+
static constexpr auto cMaxNumExposedPorts = AOS_CONFIG_TYPES_MAX_NUM_EXPOSED_PORTS;
400400

401401
/**
402402
* Max exposed port len.

0 commit comments

Comments
 (0)