summaryrefslogtreecommitdiffstats
path: root/include/binder/Parcel.h
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
commit727de40c6bc7c6521a0542ea9def5d5c7b1c5e06 (patch)
tree0d2f0f400211efbaf131020d7c4d38e647f5bbe3 /include/binder/Parcel.h
parentd6343c26b8580f61a257a3045bfa124049201116 (diff)
downloadframeworks_base-727de40c6bc7c6521a0542ea9def5d5c7b1c5e06.zip
frameworks_base-727de40c6bc7c6521a0542ea9def5d5c7b1c5e06.tar.gz
frameworks_base-727de40c6bc7c6521a0542ea9def5d5c7b1c5e06.tar.bz2
More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.
Change-Id: Ia67cabcc17a73a0f15907ffea683d06bc41b90e5
Diffstat (limited to 'include/binder/Parcel.h')
-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();