mirror of
https://github.com/espressif/openthread.git
synced 2026-07-25 05:24:08 +00:00
[commissioner] make simple getter methods inline (#4207)
This commit is contained in:
committed by
Jonathan Hui
parent
9aed664596
commit
900764d2ee
@@ -374,11 +374,6 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
const char *Commissioner::GetProvisioningUrl(void) const
|
||||
{
|
||||
return mProvisioningUrl;
|
||||
}
|
||||
|
||||
otError Commissioner::SetProvisioningUrl(const char *aProvisioningUrl)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
@@ -401,16 +396,6 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
uint16_t Commissioner::GetSessionId(void) const
|
||||
{
|
||||
return mSessionId;
|
||||
}
|
||||
|
||||
otCommissionerState Commissioner::GetState(void) const
|
||||
{
|
||||
return mState;
|
||||
}
|
||||
|
||||
void Commissioner::HandleTimer(Timer &aTimer)
|
||||
{
|
||||
aTimer.GetOwner<Commissioner>().HandleTimer();
|
||||
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
* @returns A pointer to char buffer containing the URL string.
|
||||
*
|
||||
*/
|
||||
const char *GetProvisioningUrl(void) const;
|
||||
const char *GetProvisioningUrl(void) const { return mProvisioningUrl; }
|
||||
|
||||
/**
|
||||
* This method sets the Provisioning URL.
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
* @returns The Commissioner Session ID.
|
||||
*
|
||||
*/
|
||||
uint16_t GetSessionId(void) const;
|
||||
uint16_t GetSessionId(void) const { return mSessionId; }
|
||||
|
||||
/**
|
||||
* This method indicates whether or not the Commissioner role is active.
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
* @retval OT_COMMISSIONER_STATE_ACTIVE Commissioner enabled.
|
||||
*
|
||||
*/
|
||||
otCommissionerState GetState(void) const;
|
||||
otCommissionerState GetState(void) const { return mState; }
|
||||
|
||||
/**
|
||||
* This method sends MGMT_COMMISSIONER_GET.
|
||||
|
||||
Reference in New Issue
Block a user