added compare address function to API.
This commit is contained in:
@@ -204,12 +204,7 @@ unsigned address_count(void)
|
||||
return count;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
static bool address_match(
|
||||
bool address_match(
|
||||
BACNET_ADDRESS *dest,
|
||||
BACNET_ADDRESS *src)
|
||||
{
|
||||
@@ -243,6 +238,11 @@ static bool address_match(
|
||||
return match;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
|
||||
static void set_address(
|
||||
unsigned index,
|
||||
BACNET_ADDRESS *dest)
|
||||
|
||||
@@ -66,4 +66,8 @@ bool address_get_by_index(
|
||||
|
||||
unsigned address_count(void);
|
||||
|
||||
bool address_match(
|
||||
BACNET_ADDRESS *dest,
|
||||
BACNET_ADDRESS *src);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user