文件名称:
device_resource_if-h.md
所在目录:
Openharmony v1.0 / docs / docs-en / api / api-SmartVision-Devices
文件大小:
6.90 KB
下载地址:
文本预览:
# 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
## Macros
## Enumerations
## Functions
## **Overview**
**Related Modules:**
[DriverConfig](driverconfig.md)
**Description:**
Declares the API for querying the configuration tree.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures
## Macros
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
DeviceResourceType { HDF_CONFIG_SOURCE = 0, INVALID } | Enumerates configuration file types. |
## Functions
DeviceResourceGetIfaceInstance (DeviceResourceType type) | struct DeviceResourceIface * Obtains the device resource interface handle of the corresponding configuration tree type. |
点赞
回复
X