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
Hasnain Virk 2018-01-09 16:40:25 +02:00
parent 255bd30a48
commit 49885d2bba
2 changed files with 8 additions and 13 deletions

View File

@ -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;
}

View File

@ -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: