diff --git a/bacnet-stack/include/bvlc.h b/bacnet-stack/include/bvlc.h index 9962f4e5..4df6d5fe 100644 --- a/bacnet-stack/include/bvlc.h +++ b/bacnet-stack/include/bvlc.h @@ -53,7 +53,7 @@ extern "C" { #define bvlc_maintenance_timer(x) #endif /* registers with a bbmd as a foreign device */ - void bvlc_register_with_bbmd( + int bvlc_register_with_bbmd( uint32_t bbmd_address, /* in network byte order */ uint16_t bbmd_port, /* in network byte order */ uint16_t time_to_live_seconds); diff --git a/bacnet-stack/include/datalink.h b/bacnet-stack/include/datalink.h index d931ea4c..7289972f 100644 --- a/bacnet-stack/include/datalink.h +++ b/bacnet-stack/include/datalink.h @@ -82,6 +82,8 @@ #define datalink_cleanup bip_cleanup #define datalink_get_broadcast_address bip_get_broadcast_address #ifdef BAC_ROUTING +extern void routed_get_my_address( + BACNET_ADDRESS * my_address); #define datalink_get_my_address routed_get_my_address #else #define datalink_get_my_address bip_get_my_address diff --git a/bacnet-stack/include/dlenv.h b/bacnet-stack/include/dlenv.h index 841069f5..09e3e4f2 100644 --- a/bacnet-stack/include/dlenv.h +++ b/bacnet-stack/include/dlenv.h @@ -31,11 +31,17 @@ extern "C" { void dlenv_init( void); - void dlenv_register_as_foreign_device( + int dlenv_register_as_foreign_device( void); void dlenv_maintenance_timer( uint16_t elapsed_seconds); - + + /* Simple setters and getter. */ + void set_bbmd_address( long address ); + void set_bbmd_port( int port ); + void set_bbmd_ttl( int ttl_secs ); + int get_bbmd_result( void ); + #ifdef __cplusplus } #endif /* __cplusplus */