Added getter API function to timer object for state-change-value (#1134)
* Added a new getter API function Timer_State_Change_Value_Get() to the timer object that returns state-change values by copying them to a caller-provided buffer, providing a safer alternative to the existing Timer_State_Change_Value() function which returns a direct pointer to internal data.
This commit is contained in:
@@ -149,6 +149,11 @@ BACNET_STACK_EXPORT
|
||||
BACNET_TIMER_STATE_CHANGE_VALUE *Timer_State_Change_Value(
|
||||
uint32_t object_instance, BACNET_TIMER_TRANSITION transition);
|
||||
BACNET_STACK_EXPORT
|
||||
bool Timer_State_Change_Value_Get(
|
||||
uint32_t object_instance,
|
||||
BACNET_TIMER_TRANSITION transition,
|
||||
BACNET_TIMER_STATE_CHANGE_VALUE *value);
|
||||
BACNET_STACK_EXPORT
|
||||
bool Timer_State_Change_Value_Set(
|
||||
uint32_t object_instance,
|
||||
BACNET_TIMER_TRANSITION transition,
|
||||
|
||||
Reference in New Issue
Block a user