summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-09-05 17:04:38 -0700
committerSteven Moreland <smoreland@google.com>2019-09-05 17:08:40 -0700
commit48adadd572dc5e4a4649975d02792fa0ad30f787 (patch)
treea08d59b0125d1d6c023148c306fc0f074be29508
parentd6a61472b1fa47ed4b4f1a4d6e89b3f911686be0 (diff)
downloadlibhwbinder-48adadd572dc5e4a4649975d02792fa0ad30f787.tar.gz
stop exporting kernel headers
Bug: 124524556 Test: build only Change-Id: I8e1001a5cc0ff2227e018a43a492e439056e5ceb
-rw-r--r--Android.bp1
-rw-r--r--IPCThreadState.cpp3
-rw-r--r--Parcel.cpp3
-rw-r--r--ProcessState.cpp3
-rw-r--r--binder_kernel.h (renamed from include/hwbinder/binder_kernel.h)0
-rw-r--r--include/hwbinder/Parcel.h11
6 files changed, 12 insertions, 9 deletions
diff --git a/Android.bp b/Android.bp
index 69e52d7..fd0299c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -16,7 +16,6 @@ cc_defaults {
name: "libhwbinder_defaults",
export_include_dirs: ["include"],
- include_dirs: ["frameworks/native/include"],
sanitize: {
misc_undefined: ["integer"],
diff --git a/IPCThreadState.cpp b/IPCThreadState.cpp
index a87b5f4..e176890 100644
--- a/IPCThreadState.cpp
+++ b/IPCThreadState.cpp
@@ -22,7 +22,6 @@
#include <hwbinder/Binder.h>
#include <hwbinder/BpHwBinder.h>
#include <hwbinder/TextOutput.h>
-#include <hwbinder/binder_kernel.h>
#include <android-base/macros.h>
#include <utils/CallStack.h>
@@ -30,7 +29,7 @@
#include <utils/SystemClock.h>
#include <utils/threads.h>
-#include <private/binder/binder_module.h>
+#include "binder_kernel.h"
#include <hwbinder/Static.h>
#include <atomic>
diff --git a/Parcel.cpp b/Parcel.cpp
index 33d841e..4668285 100644
--- a/Parcel.cpp
+++ b/Parcel.cpp
@@ -36,7 +36,6 @@
#include <hwbinder/Parcel.h>
#include <hwbinder/ProcessState.h>
#include <hwbinder/TextOutput.h>
-#include <hwbinder/binder_kernel.h>
#include <cutils/ashmem.h>
#include <utils/Debug.h>
@@ -45,7 +44,7 @@
#include <utils/String8.h>
#include <utils/String16.h>
-#include <private/binder/binder_module.h>
+#include "binder_kernel.h"
#include <hwbinder/Static.h>
#ifndef INT32_MAX
diff --git a/ProcessState.cpp b/ProcessState.cpp
index e652a44..c0cf21a 100644
--- a/ProcessState.cpp
+++ b/ProcessState.cpp
@@ -21,12 +21,11 @@
#include <cutils/atomic.h>
#include <hwbinder/BpHwBinder.h>
#include <hwbinder/IPCThreadState.h>
-#include <hwbinder/binder_kernel.h>
#include <utils/Log.h>
#include <utils/String8.h>
#include <utils/threads.h>
-#include <private/binder/binder_module.h>
+#include "binder_kernel.h"
#include <hwbinder/Static.h>
#include <errno.h>
diff --git a/include/hwbinder/binder_kernel.h b/binder_kernel.h
index 9d9ed70..9d9ed70 100644
--- a/include/hwbinder/binder_kernel.h
+++ b/binder_kernel.h
diff --git a/include/hwbinder/Parcel.h b/include/hwbinder/Parcel.h
index 6714362..63a8475 100644
--- a/include/hwbinder/Parcel.h
+++ b/include/hwbinder/Parcel.h
@@ -25,16 +25,23 @@
#include <utils/RefBase.h>
#include <utils/String16.h>
-#include <linux/android/binder.h>
-
#include <hwbinder/IInterface.h>
struct binder_buffer_object;
+struct flat_binder_object;
// ---------------------------------------------------------------------------
namespace android {
namespace hardware {
+#ifdef BINDER_IPC_32BIT
+typedef __u32 binder_size_t;
+typedef __u32 binder_uintptr_t;
+#else
+typedef __u64 binder_size_t;
+typedef __u64 binder_uintptr_t;
+#endif
+
class IBinder;
class IPCThreadState;
class ProcessState;