文件提交

Signed-off-by: yyl <yangyanling13@huawei.com>
This commit is contained in:
yyl 2024-01-11 01:16:01 +00:00
parent 29616687d0
commit 57d5109772
4 changed files with 11 additions and 8 deletions

View File

@ -35,12 +35,14 @@
#include "vibrator_type.h"
#include <cstdint>
#ifdef __cplusplus
extern "C" {
#endif
namespace OHOS {
namespace Sensors {
namespace ohos {
namespace sensors {
/**
* @brief Controls the vibrator to vibrate continuously for a given duration.
*
@ -80,8 +82,8 @@ int32_t OH_Vibrator_PlayVibrationCustom(Vibrator_FileDescription fileDescription
* @since 11
*/
int32_t OH_Vibrator_Cancel();
} // namespace Sensors
} // namespace OHOS
} // namespace sensors
} // namespace ohos
#ifdef __cplusplus
};
#endif

View File

@ -16,7 +16,7 @@
#ifndef VIBRATOR_TYPE_H
#define VIBRATOR_TYPE_H
#include <stdint.h>
#include <cstdint>
#ifdef __cplusplus
extern "C" {
@ -83,9 +83,8 @@ typedef struct Vibrator_FileDescription {
/**< Total length of the custom vibration sequence. */
int64_t length;
} Vibrator_FileDescription;
/** @} */
#ifdef __cplusplus
};
}
#endif
#endif // endif VIBRATOR_TYPE_H

View File

@ -96,4 +96,5 @@ Sensor_Result OH_Sensor_Unsubscribe(const Sensor_SubscriptionId *id, const Senso
#ifdef __cplusplus
}
#endif
/** @} */
#endif // OH_SENSOR_H

View File

@ -34,7 +34,7 @@
#ifndef OH_SENSOR_TYPE_H
#define OH_SENSOR_TYPE_H
#include <stdint.h>
#include <cstdint>
#ifdef __cplusplus
extern "C" {
@ -493,4 +493,5 @@ int32_t OH_SensorSubscriber_GetCallback(Sensor_Subscriber* subscriber, Sensor_Ev
#ifdef __cplusplus
}
#endif
/** @} */
#endif // OH_SENSOR_TYPE_H