summaryrefslogtreecommitdiff
path: root/include/hal-sensor-interface-1.h
blob: f70096478726dc9e493dea50cd909f6e3300409a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * HAL (Hardware Abstract Layer) Common API
 *
 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __HAL_SENSOR_INTERFACE_1__
#define __HAL_SENSOR_INTERFACE_1__

#include <hal/hal-common-interface.h>
#include "hal-sensor-types.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _hal_backend_sensor_funcs {
  int (*create)(sensor_device_t **devices);
} hal_backend_sensor_funcs;

#ifdef __cplusplus
}
#endif
#endif /* __HAL_SENSOR_INTERFACE_1__ */