AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/handler/h_cov.c
static BACNET_ADDRESS *cov_address_get(
    int index)
{
    BACNET_ADDRESS *cov_dest = NULL;

    if (index < MAX_COV_ADDRESSES) {
        if (COV_Addresses[index].valid) {
            cov_dest = &COV_Addresses[index].dest;
        }
    }

    return cov_dest;
}
/**
* Gets the address from the list of COV addresses
*
* @param  index - offset into COV address list where address is stored
* @param  dest - address to be filled when found
*
* @return true if valid address, false if not valid or not found
*/
Gets the address from the list of COV addresses
Gets the address from the list of COV addresses
static BACNET_ADDRESS *cov_address_get(
    int index)
{
    BACNET_ADDRESS *cov_dest = NULL;
    if (index < MAX_COV_ADDRESSES) {
        if (COV_Addresses[index].valid) {
            cov_dest = &COV_Addresses[index].dest;
        }
    }
    return cov_dest;
}
static BACNET_ADDRESS * cov_address_get ( int index ) { BACNET_ADDRESS * cov_dest = NULL ; if ( index < MAX_COV_ADDRESSES ) { if ( COV_Addresses [ index ] . valid ) { cov_dest = & COV_Addresses [ index ] . dest ; } } return cov_dest ; }
Gets the address from the list of COV addresses
Gets the address from the list of COV addresses