diff --git a/sensor/v1_0/ISensorCallback.idl b/sensor/v1_0/ISensorCallback.idl index bb697a5c1114067988d88d47dfcedf568dc59a98..9381365511635d639797862d0cca4844743a6ec6 100644 --- a/sensor/v1_0/ISensorCallback.idl +++ b/sensor/v1_0/ISensorCallback.idl @@ -14,7 +14,7 @@ */ /** - * @addtogroup Sensor + * @addtogroup HdiSensor * @{ * * @brief Provides unified APIs for sensor services to access sensor drivers. diff --git a/sensor/v1_0/ISensorInterface.idl b/sensor/v1_0/ISensorInterface.idl index 04e2ec1cf6f6d2bc2277408201ade481d9811605..dd9ad251506327517cb24b0bd4b7645f3cbe7b61 100644 --- a/sensor/v1_0/ISensorInterface.idl +++ b/sensor/v1_0/ISensorInterface.idl @@ -14,7 +14,7 @@ */ /** - * @addtogroup Sensor + * @addtogroup HdiSensor * @{ * * @brief Provides unified APIs for sensor services to access sensor drivers. @@ -129,21 +129,22 @@ interface ISensorInterface { /** * @brief Registers the callback for reporting sensor data to the subscriber. * + * @param sensorId Indicates the sensor ID. For details, see {@link SensorTypeTag}. * @param callbackObj Indicates the callback to register. For details, see {@link ISensorCallback}. * @return Returns 0 if the callback is successfully registered; returns a negative value otherwise. * * @since 2.2 * @version 1.0 */ - Register([in] ISensorCallback callbackObj); + Register([in] int sensorId, [in] ISensorCallback callbackObj); /** * @brief Deregisters the callback for reporting sensor data. - * + * @param sensorId Indicates the sensor ID. For details, see {@link SensorTypeTag}. * @return Returns 0 if the callback is successfully deregistered; returns a negative value otherwise. * * @since 2.2 * @version 1.0 */ - Unregister(); + Unregister([in] int sensorId); } diff --git a/sensor/v1_0/SensorTypes.idl b/sensor/v1_0/SensorTypes.idl index 9b3c348d837f750a9349fe706fc25298361c015b..c3fd388afd0eb2694b31e2edfea3e37effff9c9c 100644 --- a/sensor/v1_0/SensorTypes.idl +++ b/sensor/v1_0/SensorTypes.idl @@ -14,7 +14,7 @@ */ /** - * @addtogroup Sensor + * @addtogroup HdiSensor * @{ * * @brief Provides unified APIs for sensor services to access sensor drivers.