Signed-off-by: hellohyh001 <huiyuehong@huawei.com>
Change-Id: Iad5718e7142fe148acd4a8f6e6fe19f94fc68851
This commit is contained in:
hellohyh001 2023-11-23 11:37:51 +00:00
parent 045d206f49
commit 867aa96ee9
3 changed files with 8 additions and 8 deletions

View File

@ -17,8 +17,8 @@ import("//build/ohos/ndk/ndk.gni")
ohos_ndk_headers("oh_sensor_header") {
dest_dir = "$ndk_headers_out_dir/sensors/sensor"
sources = [
"./sensor.h",
".sensor_type.h",
"./native_sensor.h",
"./native_sensor_type.h",
]
}

View File

@ -29,8 +29,8 @@
* @since 11
*/
#ifndef OH_SENSOR_H
#define OH_SENSOR_H
#ifndef OH_NATIVE_SENSOR_H
#define OH_NATIVE_SENSOR_H
#include "sensor_type.h"
@ -74,4 +74,4 @@ Sensor_Result OH_Sensor_UnsubscribeSensor(const Sensor_SubscribeId *subscribeId,
#ifdef __cplusplus
}
#endif
#endif // OH_SENSOR_H
#endif // OH_NATIVE_SENSOR_H

View File

@ -32,8 +32,8 @@
* @since 11
*/
#ifndef OH_SENSOR_TYPE_H
#define OH_SENSOR_TYPE_H
#ifndef OH_NATIVE_SENSOR_TYPE_H
#define OH_NATIVE_SENSOR_TYPE_H
#include <stdint.h>
@ -420,4 +420,4 @@ int32_t OH_Sensor_GetSensorCallback(Sensor_SubscribeAttribute* attribute, Sensor
#ifdef __cplusplus
}
#endif
#endif // OH_SENSOR_TYPE_H
#endif // OH_NATIVE_SENSOR_TYPE_H