Rename registerServiceWithCallback
Rename registerServiceWithCallback to registerService. User cannot pass
a callback to registerServiceWithCallback, so its name is confusing.
Rename it to registerService. Because it is part of
LazyServiceRegistrar, it should be clear what this function does.
Test: Build and check that cas functions as a lazy hal as before
Change-Id: I766a413b5c85f3fba6b99cffd65aa1ec77d03764
diff --git a/transport/include/hidl/HidlLazyUtils.h b/transport/include/hidl/HidlLazyUtils.h
index 2161b7d..2205daa 100644
--- a/transport/include/hidl/HidlLazyUtils.h
+++ b/transport/include/hidl/HidlLazyUtils.h
@@ -30,8 +30,8 @@
class LazyServiceRegistrar {
public:
LazyServiceRegistrar();
- status_t registerServiceWithCallback(const sp<::android::hidl::base::V1_0::IBase>& service,
- const std::string& name = "default");
+ status_t registerService(const sp<::android::hidl::base::V1_0::IBase>& service,
+ const std::string& name = "default");
private:
std::shared_ptr<details::LazyServiceRegistrarImpl> mImpl;