diff options
author | Christopher Wiley <wiley@google.com> | 2016-04-13 12:21:35 -0700 |
---|---|---|
committer | Christopher Wiley <wiley@google.com> | 2016-04-26 16:09:57 +0000 |
commit | ebffc4c034597531a955805eabecf3d6a2f34f82 (patch) | |
tree | 93a655d4fed18fe3e5cc9554eef1dccc63e02f85 /daemon/gpio_driver.h | |
parent | 22879aab255d55b5b07a5467d8ea48c01c5f7a7a (diff) | |
download | peripheralmanager-ebffc4c034597531a955805eabecf3d6a2f34f82.tar.gz |
Replace ScopedFd with unique_fd
aidl-cpp will generate code using unique_fd in the near future.
While here, also make the binder intermediates library depend on
libbinder in order to obtain proper header include paths.
Bug: 27804373
Change-Id: Ia36dba111f3ff824d34612dedcb202612ed4ba35
Test: Compiles with accompanying changes.
Diffstat (limited to 'daemon/gpio_driver.h')
-rw-r--r-- | daemon/gpio_driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gpio_driver.h b/daemon/gpio_driver.h index f157ffc..20dcbb1 100644 --- a/daemon/gpio_driver.h +++ b/daemon/gpio_driver.h @@ -22,8 +22,8 @@ #include <memory> #include <string> +#include <android-base/unique_fd.h> #include <base/macros.h> -#include <nativehelper/ScopedFd.h> #include <peripheralmanager/constants.h> namespace android { @@ -43,7 +43,7 @@ class GpioDriverInterface { virtual bool SetActiveType(GpioActiveType type) = 0; virtual bool SetDirection(GpioDirection direction) = 0; virtual bool SetEdgeType(GpioEdgeType type) = 0; - virtual bool GetPollingFd(ScopedFd* fd) = 0; + virtual bool GetPollingFd(::android::base::unique_fd* fd) = 0; }; // The following is driver boilerplate. |