OH_DeviceManager_GetLocalDeviceNameC is declared with @since 26.0.0 in the header, so the first_introduced field in libdevicemanager.ndk.json should be '26.0.0' instead of '26' to match the canonical version string.
Co-Authored-By: Agent
Signed-off-by: daiyunlong <daiyunlong4@huawei.com>
🤖 AI[100%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[100%]
Co-authored-by: claude (glm-5.2) <ai@local>
Use the same 'A or B or C' connector style as the deprecated OH_DeviceManager_GetLocalDeviceName instead of the Oxford-comma 'A, B, or C' form, so the parameter-error description reads consistently across both APIs.
Co-Authored-By: Agent
Signed-off-by: daiyunlong <daiyunlong4@huawei.com>
cpplint reports 'Do not add blank lines on the start of a code block defined by braces' on the extern "C" { block. Remove the blank line so the doxygen comment directly follows the opening brace.
Co-Authored-By: Agent
Signed-off-by: daiyunlong <daiyunlong4@huawei.com>
🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[0%]
OH_DeviceManager_GetLocalDeviceName is deprecated starting from 26.0.0, when OH_DeviceManager_GetLocalDeviceNameC is introduced. The previous '@deprecated since 20' was wrong because the API itself is @since 20 and only becomes deprecated at 26.0.0.
Co-Authored-By: Agent
Signed-off-by: daiyunlong <daiyunlong4@huawei.com>
🤖 AI[100%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[100%]
Co-authored-by: claude (glm-5.2) <ai@local>
Update the public NDK header so the @param len description reads 'Character length of the display name of the local device.' for the deprecated OH_DeviceManager_GetLocalDeviceName, aligning wording with the device_manager in-tree copy. No semantic change.
Co-Authored-By: Agent
Signed-off-by: daiyunlong <daiyunlong4@huawei.com>
Sync the public NDK header with device_manager: add OH_DeviceManager_GetLocalDeviceNameC(char **, unsigned int *) using pointer output parameters. Mark the legacy OH_DeviceManager_GetLocalDeviceName (unsigned int &) as deprecated and point users to the new C ABI. Add the new symbol to libdevicemanager.ndk.json with first_introduced 26.
Co-Authored-By: Agent
Signed-off-by: daiyunlong <daiyunlong4@huawei.com>