From 748c77dc937d952c65884e84f47fcaeebda4672e Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 17 Aug 2010 13:58:30 +0000 Subject: [PATCH] Adding prototypes and include files where required. --- bacnet-stack/include/bacapp.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/include/bacapp.h b/bacnet-stack/include/bacapp.h index c88e8223..fcca0c59 100644 --- a/bacnet-stack/include/bacapp.h +++ b/bacnet-stack/include/bacapp.h @@ -99,7 +99,7 @@ struct BACnet_Property_Reference; typedef struct BACnet_Property_Reference { BACNET_PROPERTY_ID propertyIdentifier; int32_t propertyArrayIndex; /* optional */ - /* either value or error, but not both. + /* either value or error, but not both. Use NULL value to indicate error */ BACNET_APPLICATION_DATA_VALUE *value; BACNET_ACCESS_ERROR error; @@ -123,6 +123,11 @@ extern "C" { int bacapp_encode_data( uint8_t * apdu, BACNET_APPLICATION_DATA_VALUE * value); + int bacapp_decode_data( + uint8_t * apdu, + uint8_t tag_data_type, + uint32_t len_value_type, + BACNET_APPLICATION_DATA_VALUE * value); int bacapp_decode_application_data( uint8_t * apdu,