From 867aa96ee91c085e732509149270c194c24d0723 Mon Sep 17 00:00:00 2001 From: hellohyh001 Date: Thu, 23 Nov 2023 11:37:51 +0000 Subject: [PATCH] update Signed-off-by: hellohyh001 Change-Id: Iad5718e7142fe148acd4a8f6e6fe19f94fc68851 --- sensors/sensor/BUILD.gn | 4 ++-- sensors/sensor/{sensor.h => native_sensor.h} | 6 +++--- sensors/sensor/{sensor_type.h => native_sensor_type.h} | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename sensors/sensor/{sensor.h => native_sensor.h} (97%) rename sensors/sensor/{sensor_type.h => native_sensor_type.h} (99%) diff --git a/sensors/sensor/BUILD.gn b/sensors/sensor/BUILD.gn index 5b6564b22..cd0a33870 100644 --- a/sensors/sensor/BUILD.gn +++ b/sensors/sensor/BUILD.gn @@ -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", ] } diff --git a/sensors/sensor/sensor.h b/sensors/sensor/native_sensor.h similarity index 97% rename from sensors/sensor/sensor.h rename to sensors/sensor/native_sensor.h index e8557d2b2..28be00071 100644 --- a/sensors/sensor/sensor.h +++ b/sensors/sensor/native_sensor.h @@ -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 \ No newline at end of file +#endif // OH_NATIVE_SENSOR_H \ No newline at end of file diff --git a/sensors/sensor/sensor_type.h b/sensors/sensor/native_sensor_type.h similarity index 99% rename from sensors/sensor/sensor_type.h rename to sensors/sensor/native_sensor_type.h index 996cd5384..01f3a519a 100644 --- a/sensors/sensor/sensor_type.h +++ b/sensors/sensor/native_sensor_type.h @@ -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 @@ -420,4 +420,4 @@ int32_t OH_Sensor_GetSensorCallback(Sensor_SubscribeAttribute* attribute, Sensor #ifdef __cplusplus } #endif -#endif // OH_SENSOR_TYPE_H \ No newline at end of file +#endif // OH_NATIVE_SENSOR_TYPE_H \ No newline at end of file