fix: changed @since to version 13 and fix typos

Signed-off-by: z30053694 <zhangchen190@huawei.com>
Change-Id: I2d6edf8ed5c0fa9bfb0b177ee7f1665c9121c2c9

fix: changed version to 13 and fix typos

Signed-off-by: z30053694 <zhangchen190@huawei.com>
Change-Id: I1546a6df07010199b20a790740364f0747a47c94

fix: added comment

Signed-off-by: z30053694 <zhangchen190@huawei.com>
Change-Id: I26f987cdd7dc69daf1c8cb27782e984fd1d3f8d6

fix: typos

Signed-off-by: z30053694 <zhangchen190@huawei.com>
Change-Id: I9b667f4de5b6bf8262ed7987d696ea5b5e4881a7
This commit is contained in:
z30053694 2024-09-02 11:12:17 +08:00
parent 11baff980e
commit 339875e705
3 changed files with 21 additions and 21 deletions

View File

@ -101,7 +101,7 @@ ohos_ndk_library("libohbattery_info_ndk") {
output_name = "ohbattery_info"
output_extension = "so"
ndk_description_file = "./ohbattery_info.ndk.json"
min_compact_version = "12"
min_compact_version = "13"
system_capability = "SystemCapability.PowerManager.BatteryManager.Core"
system_capability_headers = [ "BasicServicesKit/ohbattery_info.h" ]
}

View File

@ -20,19 +20,19 @@
* @brief Provides the definition of the C interface for the BatteryInfo module.
*
* @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 12
* @since 13
* @version 1.0
*/
/**
* @file ohbattery_info.h
*
* @brief Declares the APIs to discover and connect printers, print files from a printer,
* query the list of the added printers and the printer information within it, and so on.
* @brief Declares the APIs to get informations about the current battery capacity and the power source type,
* defines strings that identify corresponding common events.
*
* @library libohbattery_info.so
* @kit BasicServicesKit
* @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 12
* @since 13
* @version 1.0
*/
#ifndef OHBATTERY_INFO_HEADER
@ -45,20 +45,20 @@ extern "C" {
#endif /* __cplusplus */
/**
* @brief a string that identifies the commen event sent after battery capacity changes
* @since 12
* @brief A string that identifies the common event sent after battery capacity changes.
* @since 13
* @version 1.0
*/
static const char* COMMON_EVENT_KEY_CAPACITY = "soc";
/**
* @brief a string that identifies the commen event sent after charge state changes
* @since 12
* @brief A string that identifies the common event sent after charge state changes.
* @since 13
* @version 1.0
*/
static const char* COMMON_EVENT_KEY_CHARGE_STATE = "chargeState";
/**
* @brief a string that identifies the commen event sent after plugged type changes
* @since 12
* @brief A string that identifies the common event sent after plugged type changes.
* @since 13
* @version 1.0
*/
static const char* COMMON_EVENT_KEY_PLUGGED_TYPE = "pluggedType";
@ -66,7 +66,7 @@ static const char* COMMON_EVENT_KEY_PLUGGED_TYPE = "pluggedType";
/**
* @brief Defines plugged types.
*
* @since 12
* @since 13
* @version 1.0
*/
typedef enum {
@ -99,9 +99,9 @@ typedef enum {
/**
* @brief This API returns the current battery capacity.
*
* @return Returns number betweem 0 and 100.
* @syscap ystemCapability.PowerManager.BatteryManager.Core
* @since 12
* @return Returns number between 0 and 100.
* @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 13
*/
int32_t OH_BatteryInfo_GetCapacity();
@ -113,8 +113,8 @@ int32_t OH_BatteryInfo_GetCapacity();
* {@link PLUGGED_TYPE_USB} if the power source is an USB DC charger.
* {@link PLUGGED_TYPE_WIRELESS} if the power source is wireless charger.
* {@link PLUGGED_TYPE_BUTT} if the type is unknown.
* @syscap ystemCapability.PowerManager.BatteryManager.Core
* @since 12
* @syscap SystemCapability.PowerManager.BatteryManager.Core
* @since 13
*/
BatteryInfo_BatteryPluggedType OH_BatteryInfo_GetPluggedType();
#ifdef __cplusplus

View File

@ -1,8 +1,8 @@
[
{ "first_introduced": "12",
{ "first_introduced": "13",
"name":"OH_BatteryInfo_GetCapacity"
},
{ "first_introduced": "12",
{ "first_introduced": "13",
"name":"OH_BatteryInfo_GetPluggedType"
}
]