Skip to content

Commit 5f6dd20

Browse files
committed
Turning addProperty into a module-private function
1 parent 967ae24 commit 5f6dd20

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/property/PropertyContainer.cpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@
2626
#include "types/CloudWrapperBase.h"
2727

2828
/******************************************************************************
29-
PUBLIC MEMBER FUNCTIONS
29+
INTERNAL FUNCTION DECLARATION
30+
******************************************************************************/
31+
32+
void addProperty(PropertyContainer & prop_cont, Property * property_obj, int propertyIdentifier);
33+
34+
/******************************************************************************
35+
PUBLIC FUNCTION DEFINITION
3036
******************************************************************************/
3137

3238
Property & addPropertyToContainer(PropertyContainer & prop_cont, Property & property, String const & name, Permission const permission, int propertyIdentifier, GetTimeCallbackFunc func)
@@ -153,7 +159,7 @@ String getPropertyNameByIdentifier(PropertyContainer & prop_cont, int propertyId
153159
}
154160

155161
/******************************************************************************
156-
PRIVATE MEMBER FUNCTIONS
162+
INTERNAL FUNCTION DEFINITION
157163
******************************************************************************/
158164

159165
void addProperty(PropertyContainer & prop_cont, Property * property_obj, int propertyIdentifier)

src/property/PropertyContainer.h

-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,4 @@ void requestUpdateForAllProperties(PropertyContainer & prop_cont);
6666
void updateProperty(PropertyContainer & prop_cont, String propertyName, unsigned long cloudChangeEventTime, bool const is_sync_message, std::list<CborMapData *> * map_data_list);
6767
String getPropertyNameByIdentifier(PropertyContainer & prop_cont, int propertyIdentifier);
6868

69-
70-
void addProperty(PropertyContainer & prop_cont, Property * property_obj, int propertyIdentifier);
71-
7269
#endif /* ARDUINO_PROPERTY_CONTAINER_H_ */

0 commit comments

Comments
 (0)