12 Commits

Author SHA1 Message Date
daiyunlong 7fd4823f2a docs: unify ERR_INVALID_PARAMETER wording with deprecated API
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>
2026-07-25 11:35:32 +08:00
daiyunlong f50edad24e style: drop blank line after extern C opening brace
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%]
2026-07-25 10:59:50 +08:00
daiyunlong 566df5726d docs: correct deprecated version to 26.0.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>
2026-07-25 10:23:31 +08:00
daiyunlong 6dac78da24 docs: refine GetLocalDeviceName len param wording
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>
2026-07-25 10:14:22 +08:00
daiyunlong 50aa51b43a feat: add C ABI for GetLocalDeviceName
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>
2026-07-24 23:32:11 +08:00
lishang21 ce559022dd update: 更新文件 oh_device_manager_err_code.h
Signed-off-by: lishang21 <lishang21@h-partners.com>
2026-04-03 15:42:01 +08:00
lishang21 e7c18ded4c update: 更新文件 oh_device_manager_err_code.h
Signed-off-by: lishang21 <lishang21@h-partners.com>
2026-04-03 15:23:04 +08:00
lishang21 eb49362b64 update: 更新文件 oh_device_manager.h
Signed-off-by: lishang21 <lishang21@h-partners.com>
2026-04-03 15:22:42 +08:00
lishang21 c0a5c21fcd update: 更新文件 oh_device_manager_err_code.h
Signed-off-by: lishang21 <lishang21@h-partners.com>
2026-04-03 15:02:43 +08:00
lishang21 ac011b43e7 update: 更新文件 oh_device_manager.h
Signed-off-by: lishang21 <lishang21@h-partners.com>
2026-04-03 15:01:49 +08:00
guoyi100 30d61f93f8 接口补充错误码
Signed-off-by: guoyi100 <guoyi39@huawei.com>
2026-01-19 18:03:28 +08:00
guoyi e628d41b74 新增dm_ndk
Signed-off-by: guoyi <guoyi39@huawei.com>
2025-06-30 20:19:56 +08:00