add defines for each supported BACAPP_TYPES_EXTRA (#543)

* add defines for each supported BACAPP_TYPES_EXTRA

---------

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2023-12-01 12:23:44 -06:00
committed by GitHub
parent c34e1a72b2
commit b9a29d8093
25 changed files with 902 additions and 213 deletions
+7 -1
View File
@@ -792,11 +792,14 @@ bool decode_is_context_tag_with_length(
* @param tag_number Tag number, that has been decoded before.
* @param tag_length Pointer to a variable, or NULL.
* Returns the length of the tag in bytes if not NULL.
* @param len_value_type Pointer to a variable, or NULL.
* Returns the len_value_type of the tag in bytes if not NULL.
*
* @return true on a match, false otherwise.
*/
bool bacnet_is_context_tag_number(
uint8_t *apdu, uint32_t apdu_size, uint8_t tag_number, int *tag_length)
uint8_t *apdu, uint32_t apdu_size, uint8_t tag_number, int *tag_length,
uint32_t *len_value_type)
{
bool match = false;
int len;
@@ -808,6 +811,9 @@ bool bacnet_is_context_tag_number(
if (tag_length) {
*tag_length = len;
}
if (len_value_type) {
*len_value_type = tag.len_value_type;
}
match = true;
}
}