Skip to content

Commit

Permalink
[srp-server] fix typo in otSrpServerIsFastStartModeEnabled (#11316)
Browse files Browse the repository at this point in the history
Rename otSrpServerIsFastStartmodeEnabled to
otSrpServerIsFastStartModeEnabled
  • Loading branch information
wgtdkp authored Mar 3, 2025
1 parent 859b559 commit 6866acc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/openthread/instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extern "C" {
*
* @note This number versions both OpenThread platform and user APIs.
*/
#define OPENTHREAD_API_VERSION (481)
#define OPENTHREAD_API_VERSION (482)

/**
* @addtogroup api-instance
Expand Down
2 changes: 1 addition & 1 deletion include/openthread/srp_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ otError otSrpServerEnableFastStartMode(otInstance *aInstance);
* @retval TRUE The fast-start mode is enabled.
* @retval FALSE The fast-start mode is disabled.
*/
bool otSrpServerIsFastStartmodeEnabled(otInstance *aInstance);
bool otSrpServerIsFastStartModeEnabled(otInstance *aInstance);

/**
* Returns SRP server TTL configuration.
Expand Down
4 changes: 2 additions & 2 deletions src/cli/cli_srp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ template <> otError SrpServer::Process<Cmd("domain")>(Arg aArgs[])
* @par
* This command requires that `OPENTHREAD_CONFIG_SRP_SERVER_FAST_START_MODE_ENABLE` be enabled.
* @moreinfo{@srp}.
* @sa otSrpServerIsFastStartmodeEnabled
* @sa otSrpServerIsFastStartModeEnabled
* @sa otSrpServerEnableFastStartMode
*/
template <> otError SrpServer::Process<Cmd("faststart")>(Arg aArgs[])
Expand All @@ -206,7 +206,7 @@ template <> otError SrpServer::Process<Cmd("faststart")>(Arg aArgs[])

if (aArgs[0].IsEmpty())
{
OutputEnabledDisabledStatus(otSrpServerIsFastStartmodeEnabled(GetInstancePtr()));
OutputEnabledDisabledStatus(otSrpServerIsFastStartModeEnabled(GetInstancePtr()));
}
else if (aArgs[0] == "enable")
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/api/srp_server_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ otError otSrpServerEnableFastStartMode(otInstance *aInstance)
return AsCoreType(aInstance).Get<Srp::Server>().EnableFastStartMode();
}

bool otSrpServerIsFastStartmodeEnabled(otInstance *aInstance)
bool otSrpServerIsFastStartModeEnabled(otInstance *aInstance)
{
return AsCoreType(aInstance).Get<Srp::Server>().IsFastStartModeEnabled();
}
Expand Down

0 comments on commit 6866acc

Please sign in to comment.