AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/src/proplist.c
const int * property_list_required(
    BACNET_OBJECT_TYPE object_type)
{
    const int * pList = NULL;

    switch (object_type) {
        case OBJECT_DEVICE:
            pList = Device_Properties_Required;
            break;
        case OBJECT_ACCUMULATOR:
            pList = Accumulator_Properties_Required;
            break;
        case OBJECT_ANALOG_INPUT:
            pList = Analog_Input_Properties_Required;
            break;
        case OBJECT_ANALOG_OUTPUT:
            pList = Analog_Output_Properties_Required;
            break;
        case OBJECT_ANALOG_VALUE:
            pList = Analog_Value_Properties_Required;
            break;
        case OBJECT_AVERAGING:
            pList = Averaging_Properties_Required;
            break;
        case OBJECT_BINARY_INPUT:
            pList = Binary_Input_Properties_Required;
            break;
        case OBJECT_BINARY_OUTPUT:
            pList = Binary_Output_Properties_Required;
            break;
        case OBJECT_BINARY_VALUE:
            pList = Binary_Value_Properties_Required;
            break;
        case OBJECT_CALENDAR:
            pList = Calendar_Properties_Required;
            break;
        case OBJECT_CHANNEL:
            pList = Channel_Properties_Required;
            break;
        case OBJECT_COMMAND:
            pList = Command_Properties_Required;
            break;
        case OBJECT_CHARACTERSTRING_VALUE:
            pList =
                CharacterString_Value_Properties_Required;
            break;
        case OBJECT_LOAD_CONTROL:
            pList = Load_Control_Properties_Required;
            break;
        case OBJECT_LIGHTING_OUTPUT:
            pList = Lighting_Output_Properties_Required;
            break;
        case OBJECT_LIFE_SAFETY_POINT:
            pList =
                Life_Safety_Point_Properties_Required;
            break;
        case OBJECT_MULTI_STATE_INPUT:
            pList =
                Multistate_Input_Properties_Required;
            break;
        case OBJECT_MULTI_STATE_OUTPUT:
            pList =
                Multistate_Output_Properties_Required;
            break;
        case OBJECT_MULTI_STATE_VALUE:
            pList =
                Multistate_Value_Properties_Required;
            break;
        case OBJECT_NOTIFICATION_CLASS:
            pList =
                Notification_Class_Properties_Required;
            break;
        case OBJECT_TRENDLOG:
            pList = Trend_Log_Properties_Required;
            break;
        case OBJECT_FILE:
            pList = File_Properties_Required;
            break;
        case OBJECT_INTEGER_VALUE:
            pList = Integer_Value_Properties_Required;
            break;
        default:
            pList = Default_Properties_Required;
            break;
    }

    return pList;
}
/**
 * Function that returns the list of Required properties
 * of known standard objects.
 *
 * @param object_type - enumerated BACNET_OBJECT_TYPE
 * @return returns a pointer to a '-1' terminated array of
 * type 'int' that contain BACnet object properties for the given object
 * type.
 */
Function that returns the list of Required properties
of known standard objects.

@param object_type - enumerated BACNET_OBJECT_TYPE
@return returns a pointer to a '-1' terminated array of
type 'int' that contain BACnet object properties for the given object
type.
Function that returns the list of Required properties of known standard objects . @param object_type - enumerated BACNET_OBJECT_TYPE @return returns a pointer to a ' - 1 ' terminated array of type ' int ' that contain BACnet object properties for the given object type .
const int * property_list_required(
    BACNET_OBJECT_TYPE object_type)
{
    const int * pList = NULL;
    switch (object_type) {
        case OBJECT_DEVICE:
            pList = Device_Properties_Required;
            break;
        case OBJECT_ACCUMULATOR:
            pList = Accumulator_Properties_Required;
            break;
        case OBJECT_ANALOG_INPUT:
            pList = Analog_Input_Properties_Required;
            break;
        case OBJECT_ANALOG_OUTPUT:
            pList = Analog_Output_Properties_Required;
            break;
        case OBJECT_ANALOG_VALUE:
            pList = Analog_Value_Properties_Required;
            break;
        case OBJECT_AVERAGING:
            pList = Averaging_Properties_Required;
            break;
        case OBJECT_BINARY_INPUT:
            pList = Binary_Input_Properties_Required;
            break;
        case OBJECT_BINARY_OUTPUT:
            pList = Binary_Output_Properties_Required;
            break;
        case OBJECT_BINARY_VALUE:
            pList = Binary_Value_Properties_Required;
            break;
        case OBJECT_CALENDAR:
            pList = Calendar_Properties_Required;
            break;
        case OBJECT_CHANNEL:
            pList = Channel_Properties_Required;
            break;
        case OBJECT_COMMAND:
            pList = Command_Properties_Required;
            break;
        case OBJECT_CHARACTERSTRING_VALUE:
            pList =
                CharacterString_Value_Properties_Required;
            break;
        case OBJECT_LOAD_CONTROL:
            pList = Load_Control_Properties_Required;
            break;
        case OBJECT_LIGHTING_OUTPUT:
            pList = Lighting_Output_Properties_Required;
            break;
        case OBJECT_LIFE_SAFETY_POINT:
            pList =
                Life_Safety_Point_Properties_Required;
            break;
        case OBJECT_MULTI_STATE_INPUT:
            pList =
                Multistate_Input_Properties_Required;
            break;
        case OBJECT_MULTI_STATE_OUTPUT:
            pList =
                Multistate_Output_Properties_Required;
            break;
        case OBJECT_MULTI_STATE_VALUE:
            pList =
                Multistate_Value_Properties_Required;
            break;
        case OBJECT_NOTIFICATION_CLASS:
            pList =
                Notification_Class_Properties_Required;
            break;
        case OBJECT_TRENDLOG:
            pList = Trend_Log_Properties_Required;
            break;
        case OBJECT_FILE:
            pList = File_Properties_Required;
            break;
        case OBJECT_INTEGER_VALUE:
            pList = Integer_Value_Properties_Required;
            break;
        default:
            pList = Default_Properties_Required;
            break;
    }
    return pList;
}
const int * property_list_required ( BACNET_OBJECT_TYPE object_type ) { const int * pList = NULL ; switch ( object_type ) { case OBJECT_DEVICE : pList = Device_Properties_Required ; break ; case OBJECT_ACCUMULATOR : pList = Accumulator_Properties_Required ; break ; case OBJECT_ANALOG_INPUT : pList = Analog_Input_Properties_Required ; break ; case OBJECT_ANALOG_OUTPUT : pList = Analog_Output_Properties_Required ; break ; case OBJECT_ANALOG_VALUE : pList = Analog_Value_Properties_Required ; break ; case OBJECT_AVERAGING : pList = Averaging_Properties_Required ; break ; case OBJECT_BINARY_INPUT : pList = Binary_Input_Properties_Required ; break ; case OBJECT_BINARY_OUTPUT : pList = Binary_Output_Properties_Required ; break ; case OBJECT_BINARY_VALUE : pList = Binary_Value_Properties_Required ; break ; case OBJECT_CALENDAR : pList = Calendar_Properties_Required ; break ; case OBJECT_CHANNEL : pList = Channel_Properties_Required ; break ; case OBJECT_COMMAND : pList = Command_Properties_Required ; break ; case OBJECT_CHARACTERSTRING_VALUE : pList = CharacterString_Value_Properties_Required ; break ; case OBJECT_LOAD_CONTROL : pList = Load_Control_Properties_Required ; break ; case OBJECT_LIGHTING_OUTPUT : pList = Lighting_Output_Properties_Required ; break ; case OBJECT_LIFE_SAFETY_POINT : pList = Life_Safety_Point_Properties_Required ; break ; case OBJECT_MULTI_STATE_INPUT : pList = Multistate_Input_Properties_Required ; break ; case OBJECT_MULTI_STATE_OUTPUT : pList = Multistate_Output_Properties_Required ; break ; case OBJECT_MULTI_STATE_VALUE : pList = Multistate_Value_Properties_Required ; break ; case OBJECT_NOTIFICATION_CLASS : pList = Notification_Class_Properties_Required ; break ; case OBJECT_TRENDLOG : pList = Trend_Log_Properties_Required ; break ; case OBJECT_FILE : pList = File_Properties_Required ; break ; case OBJECT_INTEGER_VALUE : pList = Integer_Value_Properties_Required ; break ; default : pList = Default_Properties_Required ; break ; } return pList ; }
Function that returns the list of Required properties
 of known standard objects.
Function that returns the list of Required properties of known standard objects .