AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/epics/main.c
static void BuildPropRequest(
    BACNET_READ_ACCESS_DATA * rpm_object)
{
    int i;
    /* To start with, StartNextObject() has prepopulated one propEntry,
     * but we will overwrite it and link more to it
     */
    BACNET_PROPERTY_REFERENCE *propEntry = rpm_object->listOfProperties;
    BACNET_PROPERTY_REFERENCE *oldEntry = rpm_object->listOfProperties;
    for (i = 0; Property_Value_List[i].property_id != -1; i++) {
        if (propEntry == NULL) {
            propEntry = calloc(1, sizeof(BACNET_PROPERTY_REFERENCE));
            assert(propEntry);
            oldEntry->next = propEntry;
        }
        propEntry->propertyIdentifier = Property_Value_List[i].property_id;
        propEntry->propertyArrayIndex = BACNET_ARRAY_ALL;
        oldEntry = propEntry;
        propEntry = NULL;
    }
}
/* Build a list of device properties to request with RPM. */
Build a list of device properties to request with RPM.
Build a list of device properties to request with RPM .
static void BuildPropRequest(
    BACNET_READ_ACCESS_DATA * rpm_object)
{
    int i;
    BACNET_PROPERTY_REFERENCE *propEntry = rpm_object->listOfProperties;
    BACNET_PROPERTY_REFERENCE *oldEntry = rpm_object->listOfProperties;
    for (i = 0; Property_Value_List[i].property_id != -1; i++) {
        if (propEntry == NULL) {
            propEntry = calloc(1, sizeof(BACNET_PROPERTY_REFERENCE));
            assert(propEntry);
            oldEntry->next = propEntry;
        }
        propEntry->propertyIdentifier = Property_Value_List[i].property_id;
        propEntry->propertyArrayIndex = BACNET_ARRAY_ALL;
        oldEntry = propEntry;
        propEntry = NULL;
    }
}
static void BuildPropRequest ( BACNET_READ_ACCESS_DATA * rpm_object ) { int i ; BACNET_PROPERTY_REFERENCE * propEntry = rpm_object -> listOfProperties ; BACNET_PROPERTY_REFERENCE * oldEntry = rpm_object -> listOfProperties ; for ( i = 0 ; Property_Value_List [ i ] . property_id != -1 ; i ++ ) { if ( propEntry == NULL ) { propEntry = calloc ( 1 , sizeof ( BACNET_PROPERTY_REFERENCE ) ) ; assert ( propEntry ) ; oldEntry -> next = propEntry ; } propEntry -> propertyIdentifier = Property_Value_List [ i ] . property_id ; propEntry -> propertyArrayIndex = BACNET_ARRAY_ALL ; oldEntry = propEntry ; propEntry = NULL ; } }
Build a list of device properties to request with RPM.
Build a list of device properties to request with RPM .
/* To start with, StartNextObject() has prepopulated one propEntry,
     * but we will overwrite it and link more to it
     */