1cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol/*
2cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * Copyright (C) 2016 The Android Open Source Project
3cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol *
4cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * Licensed under the Apache License, Version 2.0 (the "License");
5cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * you may not use this file except in compliance with the License.
6cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * You may obtain a copy of the License at
7cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol *
8cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol *      http://www.apache.org/licenses/LICENSE-2.0
9cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol *
10cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * Unless required by applicable law or agreed to in writing, software
11cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * distributed under the License is distributed on an "AS IS" BASIS,
12cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * See the License for the specific language governing permissions and
14cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * limitations under the License.
15cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol */
16cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol
170d94eb2fcf599754d9a1087c3292ab6ac6495de6Andrew Rossignol#ifndef CHRE_PLATFORM_LINUX_PLATFORM_SENSOR_BASE_H_
180d94eb2fcf599754d9a1087c3292ab6ac6495de6Andrew Rossignol#define CHRE_PLATFORM_LINUX_PLATFORM_SENSOR_BASE_H_
19cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol
20cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignolnamespace chre {
21cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol
22cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol/**
23cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol * Storage for the Linux implementation of the PlatformSensor class.
24cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol */
25cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignolclass PlatformSensorBase {
26a5396b8a2fd2d3bcb2a8bbbb0100f2c765ffe234Andrew Rossignol public:
27a5396b8a2fd2d3bcb2a8bbbb0100f2c765ffe234Andrew Rossignol  //! The maximum size of a Linux sensor string.
28a5396b8a2fd2d3bcb2a8bbbb0100f2c765ffe234Andrew Rossignol  static constexpr size_t kMaxSensorNameSize = 32;
2948fda6e1eedf6ba80ae7596fc7676f8318a1e88eMeng-hsuan Chung
30a5396b8a2fd2d3bcb2a8bbbb0100f2c765ffe234Andrew Rossignol  //! The name of this sensor for the Linux platform.
3148fda6e1eedf6ba80ae7596fc7676f8318a1e88eMeng-hsuan Chung  char sensorName[kMaxSensorNameSize];
32cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol};
33cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol
34cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol}  // namespace chre
35cd70ffd7dc683bd0d473f98ba593362e9cc5a877Andrew Rossignol
360d94eb2fcf599754d9a1087c3292ab6ac6495de6Andrew Rossignol#endif  // CHRE_PLATFORM_LINUX_PLATFORM_SENSOR_BASE_H_
37