Warn in headers that this is a fork. am: b5f6e0014e
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/1608701
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ice9ced85be3687913caaa663e2f72eba55d5d309
diff --git a/include/hwbinder/Binder.h b/include/hwbinder/Binder.h
index 32e644b..d05c6ff 100644
--- a/include/hwbinder/Binder.h
+++ b/include/hwbinder/Binder.h
@@ -21,6 +21,10 @@
#include <stdint.h>
#include <hwbinder/IBinder.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
// ---------------------------------------------------------------------------
namespace android {
namespace hardware {
diff --git a/include/hwbinder/BpHwBinder.h b/include/hwbinder/BpHwBinder.h
index 707a438..36f82e1 100644
--- a/include/hwbinder/BpHwBinder.h
+++ b/include/hwbinder/BpHwBinder.h
@@ -21,6 +21,10 @@
#include <utils/KeyedVector.h>
#include <utils/threads.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
// ---------------------------------------------------------------------------
namespace android {
namespace hardware {
diff --git a/include/hwbinder/Debug.h b/include/hwbinder/Debug.h
index c23618c..cdc5fa0 100644
--- a/include/hwbinder/Debug.h
+++ b/include/hwbinder/Debug.h
@@ -21,6 +21,10 @@
#include <sys/cdefs.h>
#include <sys/types.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
namespace android {
namespace hardware {
// ---------------------------------------------------------------------------
diff --git a/include/hwbinder/IBinder.h b/include/hwbinder/IBinder.h
index 8340ca0..b5593fe 100644
--- a/include/hwbinder/IBinder.h
+++ b/include/hwbinder/IBinder.h
@@ -23,6 +23,10 @@
#include <utils/RefBase.h>
#include <utils/String16.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
// ---------------------------------------------------------------------------
namespace android {
namespace hardware {
diff --git a/include/hwbinder/IInterface.h b/include/hwbinder/IInterface.h
index 7e13957..7fec75f 100644
--- a/include/hwbinder/IInterface.h
+++ b/include/hwbinder/IInterface.h
@@ -20,6 +20,10 @@
#include <hwbinder/Binder.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
namespace android {
namespace hardware {
// ----------------------------------------------------------------------
diff --git a/include/hwbinder/IPCThreadState.h b/include/hwbinder/IPCThreadState.h
index 85c0bfb..f4c9f9d 100644
--- a/include/hwbinder/IPCThreadState.h
+++ b/include/hwbinder/IPCThreadState.h
@@ -24,6 +24,10 @@
#include <functional>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
#if defined(_WIN32)
typedef int uid_t;
#endif
diff --git a/include/hwbinder/Parcel.h b/include/hwbinder/Parcel.h
index 01b9b3f..4822fa0 100644
--- a/include/hwbinder/Parcel.h
+++ b/include/hwbinder/Parcel.h
@@ -27,6 +27,10 @@
#include <hwbinder/IInterface.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
struct binder_buffer_object;
struct flat_binder_object;
diff --git a/include/hwbinder/ProcessState.h b/include/hwbinder/ProcessState.h
index 495f247..00450f1 100644
--- a/include/hwbinder/ProcessState.h
+++ b/include/hwbinder/ProcessState.h
@@ -26,6 +26,10 @@
#include <pthread.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
// ---------------------------------------------------------------------------
namespace android {
namespace hardware {
diff --git a/include/hwbinder/Static.h b/include/hwbinder/Static.h
index 8f9fab2..75bbcea 100644
--- a/include/hwbinder/Static.h
+++ b/include/hwbinder/Static.h
@@ -22,6 +22,10 @@
#include <hwbinder/IBinder.h>
#include <hwbinder/ProcessState.h>
+// WARNING: this code is part of libhwbinder, a fork of libbinder. Generally,
+// this means that it is only relevant to HIDL. Any AIDL- or libbinder-specific
+// code should not try to use these things.
+
namespace android {
namespace hardware {