Created an automatic way to determine the services supported for the device object by using the handlers list.
This commit is contained in:
@@ -144,10 +144,21 @@ void apdu_set_confirmed_handler(
|
||||
BACNET_CONFIRMED_SERVICE service_choice,
|
||||
confirmed_function pFunction);
|
||||
|
||||
/* returns true if the handler is set */
|
||||
bool apdu_confirmed_handler(
|
||||
BACNET_CONFIRMED_SERVICE service_choice);
|
||||
|
||||
void apdu_set_unconfirmed_handler(
|
||||
BACNET_UNCONFIRMED_SERVICE service_choice,
|
||||
unconfirmed_function pFunction);
|
||||
|
||||
/* returns true if the handler is set */
|
||||
bool apdu_unconfirmed_handler(
|
||||
BACNET_UNCONFIRMED_SERVICE service_choice);
|
||||
|
||||
/* returns true if the service is supported by a handler */
|
||||
bool apdu_service_supported(BACNET_SERVICES_SUPPORTED service_supported);
|
||||
|
||||
void apdu_set_error_handler(
|
||||
BACNET_CONFIRMED_SERVICE service_choice,
|
||||
error_function pFunction);
|
||||
|
||||
Reference in New Issue
Block a user