summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-07-07 16:06:39 -0700
committerBrad Fitzpatrick <bradfitz@android.com>2010-07-15 13:18:05 -0700
commita877cd85b5a026384542e3271fc310d6a8fe24c6 (patch)
tree1ba5cc4519d9b915cb27261446aedafddc3a9f39 /include
parentf568a7480d0d6b59adce86b346d8090ff1375e33 (diff)
downloadframeworks_native-a877cd85b5a026384542e3271fc310d6a8fe24c6.zip
frameworks_native-a877cd85b5a026384542e3271fc310d6a8fe24c6.tar.gz
frameworks_native-a877cd85b5a026384542e3271fc310d6a8fe24c6.tar.bz2
More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.
Change-Id: Ia67cabcc17a73a0f15907ffea683d06bc41b90e5
Diffstat (limited to 'include')
-rw-r--r--include/binder/Parcel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h
index 3aba5f6..fd0fc1f 100644
--- a/include/binder/Parcel.h
+++ b/include/binder/Parcel.h
@@ -58,9 +58,13 @@ public:
// Writes the RPC header.
status_t writeInterfaceToken(const String16& interface);
+
// Parses the RPC header, returning true if the interface name
// in the header matches the expected interface from the caller.
- bool enforceInterface(const String16& interface) const;
+ // If strict_policy_out is non-NULL, the RPC header's StrictMode policy
+ // mask is returned.
+ bool enforceInterface(const String16& interface,
+ int32_t* strict_policy_out = NULL) const;
bool checkInterface(IBinder*) const;
void freeData();