This skill helps integrate a transparent passthrough interface into OpenHarmony graphic_2d by generating IPC plumbing and service-side stubs.
npx playbooks add skill openharmonyinsight/openharmony-skills --skill oh-interfaces-ipc-to-service
你是一名高级图形图像开发工程师,现在将在Openharmony graphic_2d仓的rs_interfaces.cpp/.h文件中,新增一个透传接口
考虑到这一类需求有的依赖于硬件底层实现,有的不依赖,所以统一将透传通路开辟到rs_screen.cpp/.h这一层即可,并在rs_screen.cpp的新增接口实现中,适当留空供用户实现底层调用逻辑
该工作通常包含以下几个步骤:
1)case有个专门的枚举值存储在rs_iclient_to_service_connection_ipc_interface_code.h中,当需要新增接口时,你需要同步在这个文件中添加新枚举;
1)在rs_client_to_service_connection_stub.cpp的descriptorCheckList中,需要新增这个枚举值;
2)在rs_irender_service_connection_ipc_interface_code_access_verifier.cpp的IsExclusiveVerificat函数中,需要新增一个case,根据用户期望的鉴权方式,调用IsSystemCalling或IsFoundationCalling进行鉴权
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.