Skip to content

Commit 49885d2

Browse files
author
Hasnain Virk
committed
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.
1 parent 255bd30 commit 49885d2

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

features/lorawan/lorastack/mac/LoRaMacMlme.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,3 @@ LoRaMacStatus_t LoRaMacMlme::set_request(MlmeReq_t *mlmeRequest,
151151

152152
return LORAMAC_STATUS_PARAMETER_INVALID;
153153
}
154-
155-
MlmeIndication_t& LoRaMacMlme::get_indication()
156-
{
157-
return indication;
158-
}
159-
160-
MlmeConfirm_t& LoRaMacMlme::get_confirmation()
161-
{
162-
return confirmation;
163-
}

features/lorawan/lorastack/mac/LoRaMacMlme.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,19 @@ class LoRaMacMlme {
7878
*
7979
* @return a reference to MLME confirm data structure
8080
*/
81-
MlmeConfirm_t& get_confirmation();
81+
inline MlmeConfirm_t& get_confirmation()
82+
{
83+
return confirmation;
84+
}
8285

8386
/** Grants access to MLME indication data
8487
*
8588
* @return a reference to MLME indication data structure
8689
*/
87-
MlmeIndication_t& get_indication();
88-
90+
inline MlmeIndication_t& get_indication()
91+
{
92+
return indication;
93+
}
8994

9095
private:
9196

0 commit comments

Comments
 (0)