Added COV notification callbacks (#208)

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2021-12-20 14:41:02 -06:00
committed by GitHub
parent 0d9ba89616
commit d77925a252
5 changed files with 149 additions and 53 deletions
+9 -1
View File
@@ -53,11 +53,19 @@ typedef struct BACnet_Subscribe_COV_Data {
struct BACnet_Subscribe_COV_Data *next;
} BACNET_SUBSCRIBE_COV_DATA;
/* generic callback for COV notifications */
typedef void (*BACnet_COV_Notification_Callback)
(BACNET_COV_DATA *cov_data);
struct BACnet_COV_Notification;
typedef struct BACnet_COV_Notification {
struct BACnet_COV_Notification *next;
BACnet_COV_Notification_Callback callback;
} BACNET_COV_NOTIFICATION;
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
BACNET_STACK_EXPORT
int ucov_notify_encode_apdu(
uint8_t * apdu,
unsigned max_apdu_len,