mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 05:00:11 +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;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *Commissioner::GetProvisioningUrl(void) const
|
|
||||||
{
|
|
||||||
return mProvisioningUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
otError Commissioner::SetProvisioningUrl(const char *aProvisioningUrl)
|
otError Commissioner::SetProvisioningUrl(const char *aProvisioningUrl)
|
||||||
{
|
{
|
||||||
otError error = OT_ERROR_NONE;
|
otError error = OT_ERROR_NONE;
|
||||||
@@ -401,16 +396,6 @@ exit:
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t Commissioner::GetSessionId(void) const
|
|
||||||
{
|
|
||||||
return mSessionId;
|
|
||||||
}
|
|
||||||
|
|
||||||
otCommissionerState Commissioner::GetState(void) const
|
|
||||||
{
|
|
||||||
return mState;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Commissioner::HandleTimer(Timer &aTimer)
|
void Commissioner::HandleTimer(Timer &aTimer)
|
||||||
{
|
{
|
||||||
aTimer.GetOwner<Commissioner>().HandleTimer();
|
aTimer.GetOwner<Commissioner>().HandleTimer();
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public:
|
|||||||
* @returns A pointer to char buffer containing the URL string.
|
* @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.
|
* This method sets the Provisioning URL.
|
||||||
@@ -159,7 +159,7 @@ public:
|
|||||||
* @returns The Commissioner Session ID.
|
* @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.
|
* This method indicates whether or not the Commissioner role is active.
|
||||||
@@ -179,7 +179,7 @@ public:
|
|||||||
* @retval OT_COMMISSIONER_STATE_ACTIVE Commissioner enabled.
|
* @retval OT_COMMISSIONER_STATE_ACTIVE Commissioner enabled.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
otCommissionerState GetState(void) const;
|
otCommissionerState GetState(void) const { return mState; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method sends MGMT_COMMISSIONER_GET.
|
* This method sends MGMT_COMMISSIONER_GET.
|
||||||
|
|||||||
Reference in New Issue
Block a user