mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
文件提交
Signed-off-by: yyl <yangyanling13@huawei.com>
This commit is contained in:
parent
29616687d0
commit
57d5109772
@ -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
|
||||
|
@ -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
|
@ -96,4 +96,5 @@ Sensor_Result OH_Sensor_Unsubscribe(const Sensor_SubscriptionId *id, const Senso
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
/** @} */
|
||||
#endif // OH_SENSOR_H
|
@ -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
|
Loading…
Reference in New Issue
Block a user