Wrap passthrough mode impl in Bs##INTERFACE
Change-Id: Ifbe96d20ab7fdfcd7cda2394f5c83d0233394d7e
diff --git a/include/hidl/HidlSupport.h b/include/hidl/HidlSupport.h
index f0bdb05..347d9e4 100644
--- a/include/hidl/HidlSupport.h
+++ b/include/hidl/HidlSupport.h
@@ -271,6 +271,9 @@
*(void **)(&generator) = dlsym(handle, "HIDL_FETCH_I"#INTERFACE); \
if (generator) { \
iface = (*generator)(serviceName.c_str()); \
+ if (iface != nullptr) { \
+ iface = new Bs##INTERFACE(iface); \
+ } \
} \
return iface; \
} \