Cleanup Hidl*Support.* files.
* Move gBnConstructorMap to Static.cpp/h
* update obsolete comments
Test: compiles
Change-Id: If9720b8fc3b09e9b91b8fdc04bcde269208471ed
diff --git a/transport/include/hidl/Static.h b/transport/include/hidl/Static.h
index 00db8a7..2a40125 100644
--- a/transport/include/hidl/Static.h
+++ b/transport/include/hidl/Static.h
@@ -17,8 +17,10 @@
// All static variables go here, to control initialization and
// destruction order in the library.
-#include <utils/threads.h>
+#include <android/hidl/base/1.0/IBase.h>
#include <android/hidl/manager/1.0/IServiceManager.h>
+#include <hwbinder/IBinder.h>
+#include <utils/threads.h>
namespace android {
namespace hardware {
@@ -27,5 +29,10 @@
extern Mutex gDefaultServiceManagerLock;
extern sp<android::hidl::manager::V1_0::IServiceManager> gDefaultServiceManager;
+// For HidlBinderSupport
+// value function receives reinterpret_cast<void *>(static_cast<IFoo *>(foo)),
+// returns sp<IBinder>
+extern std::map<std::string, std::function<sp<IBinder>(void*)>> gBnConstructorMap;
+
} // namespace hardware
} // namespace android