同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Called when the driver subscribes to other driver services.
The callback is used in the service subscription mechanism. After the driver is registered with the HDF, the HDF proactively invokes the callback after the subscribed-to driver is loaded.
Since:
1.0
struct HdfDeviceObject * |
|
OnServiceConnected )(struct HdfDeviceObject *deviceObject, const struct HdfObject *service) |
Called by the HDF when the subscribed-to driver service is loaded. |
struct [HdfDeviceObject](HdfDeviceObject.md)* SubscriberCallback::deviceObject
Description:
Driver object of the subscriber
int32_t(* SubscriberCallback::OnServiceConnected) (struct [HdfDeviceObject](HdfDeviceObject.md) *[deviceObject](SubscriberCallback.md#af8640bdb30eb50c1d69781940b62c20d), const struct [HdfObject](HdfObject.md) *service)
Description:
Called by the HDF when the subscribed-to driver service is loaded.
Parameters:
deviceObject | Indicates the pointer to the variable of the HdfDeviceObject type. This variable is generated by the HDF and passed to the driver. |
service | Indicates the pointer to the service object. |
Returns:
Returns 0 if the operation is successful; returns a non-zero value otherwise.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。