blob: 637f88c92afcfb7edcce23b285349d2a1f84e410 [file] [log] [blame]
keunyoungd32f4e62015-09-21 11:33:06 -07001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <stdint.h>
18#include <sys/types.h>
19
20#include <vehicle-internal.h>
21
22static vehicle_prop_config_t INTERNAL_PROPERTIES[] = {
23 {
24 .prop = VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE,
25 .access = VEHICLE_PROP_ACCESS_READ_WRITE,
26 .change_mode = VEHICLE_PROP_CHANGE_MODE_ON_CHANGE,
27 .value_type = VEHICLE_VALUE_TYPE_INT32_VEC2,
28 .min_sample_rate = 0,
29 .max_sample_rate = 0,
30 .hal_data = NULL,
31 },
32};
33
34vehicle_prop_config_t const * getInternalProperties() {
35 return INTERNAL_PROPERTIES;
36}
37
38int getNumInternalProperties() {
39 return sizeof(INTERNAL_PROPERTIES) / sizeof(vehicle_prop_config_t);
40}