加入收藏
举报
当前仅显示指定条件回帖 [ 展开查看全部 ]
02-14 20:03
#
文件名称:
device_resource_if-h.md
所在目录:
Openharmony v1.0 / docs / docs-en / api / api-SmartVision-Devices
文件大小:
6.90 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# device\_resource\_if.h
## **Overview**
**Related Modules:**
[DriverConfig](driverconfig.md)
**Description:**
Declares the API for querying the configuration tree.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures















Data Structure Name


Description


DeviceResourceAttr


Defines the attributes of a tree node in the configuration tree.


DeviceResourceNode


Defines a tree node in the configuration tree.


DeviceResourceIface


Provides functions for obtaining information about the device resource configuration tree.



## Macros












Macro Name and Value


Description


DEV_RES_NODE_FOR_EACH_ATTR(node, attr) for ((attr) = (node)->attrData; (attr) != NULL; (attr) = (attr)->next)


Traverses the attributes of the current configuration tree node.


DEV_RES_NODE_FOR_EACH_CHILD_NODE(node, childNode) for ((childNode) = (node)->child; (childNode) != NULL; (childNode) = (childNode)->sibling)


Traverses the child nodes of the current configuration tree node.



## Enumerations









Enumeration Name


Description


DeviceResourceType { HDF_CONFIG_SOURCE = 0, INVALID }


Enumerates configuration file types.



## Functions









Function Name


Description


DeviceResourceGetIfaceInstance (DeviceResourceType type)


struct DeviceResourceIface *


Obtains the device resource interface handle of the corresponding configuration tree type.


点赞 回复
回帖
支持markdown部分语法 ?