Export definition of ObjectFactory and PropertyFetcher
They are dependencies of VintfObject and thus should
be public.
Test: builds
Bug: 118634720
Change-Id: I36912f7e3b05f2dc58a9f57845fc3bda6c5d6359
diff --git a/VintfObject.cpp b/VintfObject.cpp
index a1d4a6c..6a5685a 100644
--- a/VintfObject.cpp
+++ b/VintfObject.cpp
@@ -83,12 +83,11 @@
}
VintfObject::VintfObject(std::unique_ptr<FileSystem>&& fileSystem,
- std::unique_ptr<details::ObjectFactory<RuntimeInfo>>&& runtimeInfoFactory,
- std::unique_ptr<details::PropertyFetcher>&& propertyFetcher)
+ std::unique_ptr<ObjectFactory<RuntimeInfo>>&& runtimeInfoFactory,
+ std::unique_ptr<PropertyFetcher>&& propertyFetcher)
: mFileSystem(fileSystem ? std::move(fileSystem) : createDefaultFileSystem()),
- mRuntimeInfoFactory(runtimeInfoFactory
- ? std::move(runtimeInfoFactory)
- : std::make_unique<details::ObjectFactory<RuntimeInfo>>()),
+ mRuntimeInfoFactory(runtimeInfoFactory ? std::move(runtimeInfoFactory)
+ : std::make_unique<ObjectFactory<RuntimeInfo>>()),
mPropertyFetcher(propertyFetcher ? std::move(propertyFetcher)
: createDefaultPropertyFetcher()) {}
@@ -740,7 +739,7 @@
return mPropertyFetcher;
}
-const std::unique_ptr<details::ObjectFactory<RuntimeInfo>>& VintfObject::getRuntimeInfoFactory() {
+const std::unique_ptr<ObjectFactory<RuntimeInfo>>& VintfObject::getRuntimeInfoFactory() {
return mRuntimeInfoFactory;
}