Make "dlenv_network_port_init()" public (was static) (#281)
This is needed when initing other than by calling "dlenv_init()", e.g. to avoid using env variables and exit()
This commit is contained in:
@@ -250,7 +250,7 @@ int dlenv_register_as_foreign_device(void)
|
|||||||
/**
|
/**
|
||||||
* Datalink network port object settings
|
* Datalink network port object settings
|
||||||
*/
|
*/
|
||||||
static void dlenv_network_port_init(void)
|
void dlenv_network_port_init(void)
|
||||||
{
|
{
|
||||||
const uint32_t instance = 1;
|
const uint32_t instance = 1;
|
||||||
BACNET_IP_ADDRESS addr = { 0 };
|
BACNET_IP_ADDRESS addr = { 0 };
|
||||||
@@ -288,7 +288,7 @@ static void dlenv_network_port_init(void)
|
|||||||
/**
|
/**
|
||||||
* Datalink network port object settings
|
* Datalink network port object settings
|
||||||
*/
|
*/
|
||||||
static void dlenv_network_port_init(void)
|
void dlenv_network_port_init(void)
|
||||||
{
|
{
|
||||||
uint32_t instance = 1;
|
uint32_t instance = 1;
|
||||||
uint8_t mac[1] = { 0 };
|
uint8_t mac[1] = { 0 };
|
||||||
@@ -315,7 +315,7 @@ static void dlenv_network_port_init(void)
|
|||||||
/**
|
/**
|
||||||
* Datalink network port object settings
|
* Datalink network port object settings
|
||||||
*/
|
*/
|
||||||
static void dlenv_network_port_init(void)
|
void dlenv_network_port_init(void)
|
||||||
{
|
{
|
||||||
uint32_t instance = 1;
|
uint32_t instance = 1;
|
||||||
uint8_t prefix = 0;
|
uint8_t prefix = 0;
|
||||||
@@ -348,7 +348,7 @@ static void dlenv_network_port_init(void)
|
|||||||
/**
|
/**
|
||||||
* Datalink network port object settings
|
* Datalink network port object settings
|
||||||
*/
|
*/
|
||||||
static void dlenv_network_port_init(void)
|
void dlenv_network_port_init(void)
|
||||||
{
|
{
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ extern "C" {
|
|||||||
int dlenv_register_as_foreign_device(
|
int dlenv_register_as_foreign_device(
|
||||||
void);
|
void);
|
||||||
|
|
||||||
|
BACNET_STACK_EXPORT
|
||||||
|
void dlenv_network_port_init(
|
||||||
|
void);
|
||||||
|
|
||||||
BACNET_STACK_EXPORT
|
BACNET_STACK_EXPORT
|
||||||
void dlenv_maintenance_timer(
|
void dlenv_maintenance_timer(
|
||||||
uint16_t elapsed_seconds);
|
uint16_t elapsed_seconds);
|
||||||
|
|||||||
Reference in New Issue
Block a user