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.
struct [HdfDeviceObject]($api-api-SmartVision-Devices-HdfDeviceObject.md)* SubscriberCallback::deviceObject
Driver object of the subscriber
int32_t(* SubscriberCallback::OnServiceConnected) (struct [HdfDeviceObject]($api-api-SmartVision-Devices-HdfDeviceObject.md) *[deviceObject]($api-api-SmartVision-Devices-SubscriberCallback.md#af8640bdb30eb50c1d69781940b62c20d), const struct [HdfObject]($api-api-SmartVision-Devices-HdfObject.md) *service)
Called by the HDF when the subscribed-to driver service is loaded.
|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 0 if the operation is successful; returns a non-zero value otherwise.