Get method signatures from IBase.hal
instead of hardcoding them in hidl-gen.
Test: hidl_test
Bug: 32559427
Change-Id: Ib0d3beca695fca47eb5f82d5d54c651da9af3687
diff --git a/Interface.h b/Interface.h
index 5cba6c4..bcc8748 100644
--- a/Interface.h
+++ b/Interface.h
@@ -30,6 +30,7 @@
Interface(const char *localName, const Location &location, Interface *super);
bool addMethod(Method *method);
+ bool addAllReservedMethods();
bool isElidableType() const override;
bool isInterface() const override;
@@ -113,12 +114,12 @@
std::vector<Method *> mUserMethods;
std::vector<Method *> mReservedMethods;
mutable bool mIsJavaCompatibleInProgress;
- Method *createDescriptorChainMethod() const;
- Method *createGetDescriptorMethod() const;
- Method *createSyspropsChangedMethod() const;
- Method *createLinkToDeathMethod() const;
- Method *createUnlinkToDeathMethod() const;
- Method *createSetHALInstrumentationMethod() const;
+ bool fillDescriptorChainMethod(Method *method) const;
+ bool fillGetDescriptorMethod(Method *method) const;
+ bool fillSyspropsChangedMethod(Method *method) const;
+ bool fillLinkToDeathMethod(Method *method) const;
+ bool fillUnlinkToDeathMethod(Method *method) const;
+ bool fillSetHALInstrumentationMethod(Method *method) const;
DISALLOW_COPY_AND_ASSIGN(Interface);
};