Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e3161d7 authored by Devin Moore's avatar Devin Moore
Browse files

Move BaseInterface typedef from protected to public

It can be helpful to get the base interface when inheriting from another
interface.
There is currently a use case for getting the base interface of a
*Delegator class.

Test: atest aidl_integration_test
Bug: N/A
Change-Id: I7e35c6e48739f45fbfed714c6492e2a4c659d1d9
parent 0292d80f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,9 +72,9 @@ class BnInterface : public INTERFACE, public BBinder
public:
    virtual sp<IInterface>      queryLocalInterface(const String16& _descriptor);
    virtual const String16&     getInterfaceDescriptor() const;
    typedef INTERFACE BaseInterface;

protected:
    typedef INTERFACE           BaseInterface;
    virtual IBinder*            onAsBinder();
};

@@ -85,9 +85,9 @@ class BpInterface : public INTERFACE, public BpRefBase
{
public:
    explicit                    BpInterface(const sp<IBinder>& remote);
    typedef INTERFACE BaseInterface;

protected:
    typedef INTERFACE           BaseInterface;
    virtual IBinder*            onAsBinder();
};