Lines Matching refs:impl
61 vehicle_device_impl_t* impl; member
158 vehicle_device_impl_t* impl = (vehicle_device_impl_t*)device; in vdev_init() local
160 if (impl->initialized_) { in vdev_init()
166 impl->initialized_ = 1; in vdev_init()
167 impl->event_fn_ = event_callback_fn; in vdev_init()
168 impl->error_fn_ = error_callback_fn; in vdev_init()
174 vehicle_device_impl_t* impl = (vehicle_device_impl_t*)device; in vdev_release() local
176 if (!impl->initialized_) { in vdev_release()
180 impl->initialized_ = 0; in vdev_release()
310 void print_subscribe_info(vehicle_device_impl_t* impl UNUSED) { in print_subscribe_info()
390 if (sub->impl == NULL) { in fake_event_thread()
394 if (sub->impl->error_fn_ != NULL) { in fake_event_thread()
395 sub->impl->error_fn_(-EINVAL, VEHICLE_PROPERTY_INVALID, in fake_event_thread()
403 if (sub->impl->event_fn_ != NULL) { in fake_event_thread()
404 sub->impl->event_fn_(&event); in fake_event_thread()
427 vehicle_device_impl_t* impl = (vehicle_device_impl_t*)device; in vdev_subscribe() local
430 if (!impl->initialized_) { in vdev_subscribe()
471 sub->impl = impl; in vdev_subscribe()
484 print_subscribe_info(impl); in vdev_subscribe()
491 vehicle_device_impl_t* impl = (vehicle_device_impl_t*)device; in vdev_unsubscribe() local
514 print_subscribe_info(impl); in vdev_unsubscribe()
520 vehicle_device_impl_t* impl = (vehicle_device_impl_t*)device; in vdev_close() local
521 if (impl) { in vdev_close()
522 free(impl); in vdev_close()