Prototypes for BBMD getters and setters, and revised registration functions to return something approximating a goodness value. (Still too happy for invalid BBMDs, but it's a start.)
This commit is contained in:
@@ -53,7 +53,7 @@ extern "C" {
|
|||||||
#define bvlc_maintenance_timer(x)
|
#define bvlc_maintenance_timer(x)
|
||||||
#endif
|
#endif
|
||||||
/* registers with a bbmd as a foreign device */
|
/* 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 */
|
uint32_t bbmd_address, /* in network byte order */
|
||||||
uint16_t bbmd_port, /* in network byte order */
|
uint16_t bbmd_port, /* in network byte order */
|
||||||
uint16_t time_to_live_seconds);
|
uint16_t time_to_live_seconds);
|
||||||
|
|||||||
@@ -82,6 +82,8 @@
|
|||||||
#define datalink_cleanup bip_cleanup
|
#define datalink_cleanup bip_cleanup
|
||||||
#define datalink_get_broadcast_address bip_get_broadcast_address
|
#define datalink_get_broadcast_address bip_get_broadcast_address
|
||||||
#ifdef BAC_ROUTING
|
#ifdef BAC_ROUTING
|
||||||
|
extern void routed_get_my_address(
|
||||||
|
BACNET_ADDRESS * my_address);
|
||||||
#define datalink_get_my_address routed_get_my_address
|
#define datalink_get_my_address routed_get_my_address
|
||||||
#else
|
#else
|
||||||
#define datalink_get_my_address bip_get_my_address
|
#define datalink_get_my_address bip_get_my_address
|
||||||
|
|||||||
@@ -31,11 +31,17 @@ extern "C" {
|
|||||||
|
|
||||||
void dlenv_init(
|
void dlenv_init(
|
||||||
void);
|
void);
|
||||||
void dlenv_register_as_foreign_device(
|
int dlenv_register_as_foreign_device(
|
||||||
void);
|
void);
|
||||||
void dlenv_maintenance_timer(
|
void dlenv_maintenance_timer(
|
||||||
uint16_t elapsed_seconds);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|||||||
Reference in New Issue
Block a user