EVT_BACNET_AUDIT_EVENT (STRUCT)ΒΆ
TYPE EVT_BACNET_AUDIT_EVENT : STRUCT
Callback to give user access to BACnet server API internal generated audit event notifications.
An application may register a callback for internal generated audit event notifications by a call to ::BACnetSetHook(). This callback will be initiated every time that an audit event notification is generated by some API internal process (source audit notification in case some write or list modifications for external properties are initiated) or on external BACnet requests which have been received or have been executed by this API (target audit notification).
::BACNET_CB_STATUS The application can suppress the further processing by returning an other value than CB_STATUS_OK. In this case the audit event is dropped and not reported or logged.
- InOut:
Name
Type
Comment
pCBStatus
POINTER TO IEC_BACNET_CB_STATUS
CB-Status returned for the event. CB_STATUS_DEFAULT: The hook did not handle the requests - the BACnet API stack default actions should handle the request. CB_STATUS_OK: The hook completed successfully.
pAuditInfo
POINTER TO IEC_BACNET_AUDIT_NOTIFICATION_INFO
A pointer to a structure which contains all information for the audit event notification to be reported or logged.
bIsSourceAudit
Flag indicating if the provided audit notification data is of type source (if true). In this case this API has initiated some request or of type target (if false) in this case this API has received or executed some request.
bIsInternalGenerated
Flag indicating if the provided audit notification data is an internal generated one (if set to true) or if it has been received by forwarding (if set to false).