summaryrefslogtreecommitdiffstats
path: root/include/binder/IInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/binder/IInterface.h')
-rw-r--r--include/binder/IInterface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/binder/IInterface.h b/include/binder/IInterface.h
index 5f9f69c..4ce3613 100644
--- a/include/binder/IInterface.h
+++ b/include/binder/IInterface.h
@@ -28,9 +28,9 @@ class IInterface : public virtual RefBase
{
public:
IInterface();
- sp<IBinder> asBinder();
- sp<const IBinder> asBinder() const;
-
+ static sp<IBinder> asBinder(const IInterface*);
+ static sp<IBinder> asBinder(const sp<IInterface>&);
+
protected:
virtual ~IInterface();
virtual IBinder* onAsBinder() = 0;