AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/handler/h_cov.c
void handler_cov_init(
    void)
{
    unsigned index = 0;

    for (index = 0; index < MAX_COV_SUBCRIPTIONS; index++) {
        COV_Subscriptions[index].flag.valid = false;
        COV_Subscriptions[index].dest_index = -1;
        COV_Subscriptions[index].subscriberProcessIdentifier = 0;
        COV_Subscriptions[index].monitoredObjectIdentifier.type =
            OBJECT_ANALOG_INPUT;
        COV_Subscriptions[index].monitoredObjectIdentifier.instance = 0;
        COV_Subscriptions[index].flag.issueConfirmedNotifications = false;
        COV_Subscriptions[index].invokeID = 0;
        COV_Subscriptions[index].lifetime = 0;
        COV_Subscriptions[index].flag.send_requested = false;
    }
    for (index = 0; index < MAX_COV_ADDRESSES; index++) {
        COV_Addresses[index].valid = false;
    }
}
/** Handler to initialize the COV list, clearing and disabling each entry.
 * @ingroup DSCOV
 */
Handler to initialize the COV list, clearing and disabling each entry.
@ingroup DSCOV
Handler to initialize the COV list clearing and disabling each entry . @ingroup DSCOV
void handler_cov_init(
    void)
{
    unsigned index = 0;
    for (index = 0; index < MAX_COV_SUBCRIPTIONS; index++) {
        COV_Subscriptions[index].flag.valid = false;
        COV_Subscriptions[index].dest_index = -1;
        COV_Subscriptions[index].subscriberProcessIdentifier = 0;
        COV_Subscriptions[index].monitoredObjectIdentifier.type =
            OBJECT_ANALOG_INPUT;
        COV_Subscriptions[index].monitoredObjectIdentifier.instance = 0;
        COV_Subscriptions[index].flag.issueConfirmedNotifications = false;
        COV_Subscriptions[index].invokeID = 0;
        COV_Subscriptions[index].lifetime = 0;
        COV_Subscriptions[index].flag.send_requested = false;
    }
    for (index = 0; index < MAX_COV_ADDRESSES; index++) {
        COV_Addresses[index].valid = false;
    }
}
void handler_cov_init ( void ) { unsigned index = 0 ; for ( index = 0 ; index < MAX_COV_SUBCRIPTIONS ; index ++ ) { COV_Subscriptions [ index ] . flag . valid = false ; COV_Subscriptions [ index ] . dest_index = -1 ; COV_Subscriptions [ index ] . subscriberProcessIdentifier = 0 ; COV_Subscriptions [ index ] . monitoredObjectIdentifier . type = OBJECT_ANALOG_INPUT ; COV_Subscriptions [ index ] . monitoredObjectIdentifier . instance = 0 ; COV_Subscriptions [ index ] . flag . issueConfirmedNotifications = false ; COV_Subscriptions [ index ] . invokeID = 0 ; COV_Subscriptions [ index ] . lifetime = 0 ; COV_Subscriptions [ index ] . flag . send_requested = false ; } for ( index = 0 ; index < MAX_COV_ADDRESSES ; index ++ ) { COV_Addresses [ index ] . valid = false ; } }
Handler to initialize the COV list, clearing and disabling each entry.
Handler to initialize the COV list clearing and disabling each entry .