mirror of https://github.com/ARMmbed/mbed-os.git
Changing MLME data access methods to inline
As indicated in one of the reveiws, it makes more sense to change the data access methods to inline as they are just one liners.pull/6059/head
parent
255bd30a48
commit
49885d2bba
|
|
@ -151,13 +151,3 @@ LoRaMacStatus_t LoRaMacMlme::set_request(MlmeReq_t *mlmeRequest,
|
|||
|
||||
return LORAMAC_STATUS_PARAMETER_INVALID;
|
||||
}
|
||||
|
||||
MlmeIndication_t& LoRaMacMlme::get_indication()
|
||||
{
|
||||
return indication;
|
||||
}
|
||||
|
||||
MlmeConfirm_t& LoRaMacMlme::get_confirmation()
|
||||
{
|
||||
return confirmation;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,14 +78,19 @@ public:
|
|||
*
|
||||
* @return a reference to MLME confirm data structure
|
||||
*/
|
||||
MlmeConfirm_t& get_confirmation();
|
||||
inline MlmeConfirm_t& get_confirmation()
|
||||
{
|
||||
return confirmation;
|
||||
}
|
||||
|
||||
/** Grants access to MLME indication data
|
||||
*
|
||||
* @return a reference to MLME indication data structure
|
||||
*/
|
||||
MlmeIndication_t& get_indication();
|
||||
|
||||
inline MlmeIndication_t& get_indication()
|
||||
{
|
||||
return indication;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue