Added object-name c-string getter function to basic objects so they can be referenced to free if dynamically created. (#754)
* Added basic object-name get for ASCII names to enable free if they were dynamically created. Added unit testing to validate the basic object ASCII object-name API. * Removed static scope on character array used for name since the array gets copied into characterstring array and static is not needed.
This commit is contained in:
@@ -42,6 +42,13 @@ extern "C" {
|
||||
bool Integer_Value_Object_Name(
|
||||
uint32_t object_instance,
|
||||
BACNET_CHARACTER_STRING * object_name);
|
||||
BACNET_STACK_EXPORT
|
||||
bool Integer_Value_Name_Set(
|
||||
uint32_t object_instance,
|
||||
const char *new_name);
|
||||
BACNET_STACK_EXPORT
|
||||
const char *Integer_Value_Name_ASCII(
|
||||
uint32_t object_instance);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
int Integer_Value_Read_Property(
|
||||
@@ -78,7 +85,6 @@ extern "C" {
|
||||
uint32_t object_instance,
|
||||
uint32_t value);
|
||||
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
bool Integer_Value_Description(
|
||||
uint32_t object_instance,
|
||||
@@ -86,7 +92,10 @@ extern "C" {
|
||||
BACNET_STACK_EXPORT
|
||||
bool Integer_Value_Description_Set(
|
||||
uint32_t instance,
|
||||
char *new_name);
|
||||
const char *new_name);
|
||||
BACNET_STACK_EXPORT
|
||||
char *Integer_Value_Description_ANSI(
|
||||
uint32_t object_instance);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
uint16_t Integer_Value_Units(
|
||||
|
||||
Reference in New Issue
Block a user